|
PebbleOS v4.47.0-505-g4bbc630fa
|
What the watch advertises, and how often. More...
Functions | |
| void | bt_advertising_init (void) |
| Start advertising what is asked for. | |
| void | bt_advertising_deinit (void) |
| Stop advertising and forget what was asked for. | |
| void | bt_advertising_set_discoverable (bool discoverable) |
| Advertise for discovery, or stop. | |
| void | bt_advertising_set_reconnectable (bool reconnectable) |
| Advertise for the bonded phone to reconnect, or stop. | |
| void | bt_advertising_handle_connect (void) |
| Tell that a central connected: the stack stopped advertising. | |
| void | bt_advertising_handle_disconnect (void) |
| Tell that the central disconnected: advertising resumes. | |
What the watch advertises, and how often.
The watch advertises for one of two reasons, and airs the first that applies:
| Reason | Payload | Short interval for |
|---|---|---|
| Discovery | Flags, services, name, TX power; watch details in the scan response | 5 min |
| Reconnection | Empty | 30 s |
It advertises every 20 ms at first and every 1022.5 ms after that, and not at all while connected. A phone that keeps reconnecting and dropping gets the long interval right away.
| void bt_advertising_deinit | ( | void | ) |
Stop advertising and forget what was asked for.
Call before the stack stops.
| void bt_advertising_handle_connect | ( | void | ) |
Tell that a central connected: the stack stopped advertising.
| void bt_advertising_handle_disconnect | ( | void | ) |
Tell that the central disconnected: advertising resumes.
| void bt_advertising_init | ( | void | ) |
Start advertising what is asked for.
Call once the stack runs.
| void bt_advertising_set_discoverable | ( | bool | discoverable | ) |
Advertise for discovery, or stop.
| discoverable | true to be discoverable; the short interval starts over. |
| void bt_advertising_set_reconnectable | ( | bool | reconnectable | ) |
Advertise for the bonded phone to reconnect, or stop.
The recovery firmware never does, it stays discoverable instead.
| reconnectable | true while there is a bond. |