PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
Bluetooth services

Firmware-side Bluetooth management on top of the Bluetooth stack. More...

Modules

 Advertising
 What the watch advertises, and how often.
 
 Battery level
 Feeds the battery level to the BLE Battery Service.
 
 Bluetooth control
 Start, stop and reset the Bluetooth stack.
 
 Bonding
 What the firmware does with the bonds the Bluetooth stack keeps.
 
 Bluetooth settings
 Persistent Bluetooth settings of the firmware.
 
 Device Information Service
 Contents of the BLE Device Information Service.
 
 Local identity
 Local device name and identity address.
 
 Pairability
 Reference-counted requests to be discoverable and pairable over BLE.
 
 BLE control endpoint
 Pebble Protocol endpoint letting the phone make the watch discoverable.
 

Detailed Description

Firmware-side Bluetooth management on top of the Bluetooth stack.

Covers starting and stopping the stack, the local identity and address, pairability, and the GATT services the firmware implements (battery, device information).

The stack runs while it is enabled (by the runlevel system) and either airplane mode is off or the override forces it on:

// Once the stack is up, be discoverable and pairable for a minute.
}
void bt_ctl_set_airplane_mode_async(bool enabled)
Set and persist airplane mode.
bool bt_ctl_is_bluetooth_running(void)
Check whether the stack is up and running.
void bt_pairability_use_ble_for_period(uint16_t duration_secs)
Be pairable for a period.