How do I make a bluetooth device that set an alarm when our phone out of the bluetooth device range? How come it takes so long to connect devices to nearby devices (Bluetooth pairing and WiFi routers), when connecting devices to the web servers worldwide seems relatively instant?