I'd like to build a device that obtains the local time from a phone or laptop via BLE. My ideal interaction flow would be:
- push a "set time" button on the device to make it start advertising
- open Bluetooth settings or control panel on the phone/computer, find the device and tap to connect to it
- the device uses the current time service to request the time from the phone, then disconnects and stops advertising
The total scope of interaction is just to get the local time without needing manual adjustment, and without adding more complex connectivity like WiFi to use NTP.
Is this interaction flow possible with BLE? Can a peripheral, on its own, read from the current time service from the central? If not, does a companion app on the phone need to write to the current time service characteristic on the peripheral?