FreeRTOS: BLE
BLE
Return to main page ↑
IotBle_RegisterEventCb

Used to route event to whatever service requests it.

For example, one service could require knowledge of connection status, the it would subscribe to connectionCallback event. That API is giving the flexibility of having more than one service listening to the same event.

Parameters
[in]eventThe event.
[in]bleEventsCallbacksCallback returning status of the operation.
Returns
Returns eBTStatusSuccess on successful call.
IotBle_RegisterEventCb
BTStatus_t IotBle_RegisterEventCb(IotBleEvents_t event, IotBleEventsCallbacks_t bleEventsCallbacks)
Used to route event to whatever service requests it.
BTStatus_t
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:98
IotBleEventsCallbacks_t
BLE events not directly triggered by a function call. Most of them are triggered by a remote device m...
Definition: iot_ble.h:332
IotBleEvents_t
IotBleEvents_t
enum listing all the BLE events (not directly triggered by a function call)
Definition: iot_ble.h:317