PebbleOS v4.47.0-505-g4bbc630fa
Loading...
Searching...
No Matches

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.
 

Detailed Description

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.

Function Documentation

◆ bt_advertising_deinit()

void bt_advertising_deinit ( void  )

Stop advertising and forget what was asked for.

Call before the stack stops.

◆ bt_advertising_handle_connect()

void bt_advertising_handle_connect ( void  )

Tell that a central connected: the stack stopped advertising.

◆ bt_advertising_handle_disconnect()

void bt_advertising_handle_disconnect ( void  )

Tell that the central disconnected: advertising resumes.

◆ bt_advertising_init()

void bt_advertising_init ( void  )

Start advertising what is asked for.

Call once the stack runs.

◆ bt_advertising_set_discoverable()

void bt_advertising_set_discoverable ( bool  discoverable)

Advertise for discovery, or stop.

Parameters
discoverabletrue to be discoverable; the short interval starts over.

◆ bt_advertising_set_reconnectable()

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.

Parameters
reconnectabletrue while there is a bond.