bool bluetooth_connection_service_peek | ( | void | ) |
Query the bluetooth connection service for the current connection status.
void bluetooth_connection_service_subscribe | ( | BluetoothConnectionHandler | handler | ) |
Subscribe to the bluetooth event service. Once subscribed, the handler gets called on every bluetooth connection event.
handler | A callback to be executed on connection event |
void bluetooth_connection_service_unsubscribe | ( | void | ) |
Unsubscribe from the bluetooth event service. Once unsubscribed, the previously registered handler will no longer be called.
typedef void(* BluetoothConnectionHandler)(bool connected) |
Callback type for bluetooth connection events.
connected | true on bluetooth connection, false on disconnection |