PebbleOS
Loading...
Searching...
No Matches
Modules
Bluetooth services

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

Modules

 Battery service
 Feeds the battery level to the BLE Battery Service.
 
 Heart rate sharing
 Shares heart rate over the BLE Heart Rate Service, with per-device user permission.
 
 Bluetooth control
 Start, stop and reset the Bluetooth stack.
 
 Bonding database
 Persistent BLE bondings, CCCDs and local Bluetooth settings.
 
 Bonding database debug
 Shell dumps of the bonding database.
 
 Bonding storage format
 On-flash layout of BLE pairing info in the bonding database.
 
 Device Information Service
 Contents of the BLE Device Information Service.
 
 Local address
 Cycling of the local resolvable private address, and the pinned address.
 
 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 bonding database, the local identity and address, pairability, and the GATT services the firmware implements (battery, heart rate, 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.