Pebble Foundation Classes
0.2.0
C++ for Pebble
|
API for interacting with the Pebble communication subsystem. More...
Enumerations | |
enum | SniffInterval { SNIFF_INTERVAL_NORMAL = 0, SNIFF_INTERVAL_REDUCED = 1 } |
Functions | |
void | app_comm_set_sniff_interval (const SniffInterval interval) |
SniffInterval | app_comm_get_sniff_interval (void) |
API for interacting with the Pebble communication subsystem.
enum SniffInterval |
Intervals during which the Bluetooth module may enter a low power mode. The sniff interval defines the period during which the Bluetooth module may not exchange (ACL) packets. The longer the sniff interval, the more time the Bluetooth module may spend in a low power mode. It may be necessary to reduce the sniff interval if an app requires reduced latency when sending messages.
SniffInterval app_comm_get_sniff_interval | ( | void | ) |
Get the Bluetooth module's sniff interval
void app_comm_set_sniff_interval | ( | const SniffInterval | interval | ) |
Set the Bluetooth module's sniff interval. The sniff interval will be restored to normal by the OS after the app's de-init handler is called. Set the sniff interval to normal whenever possible.