![]() |
Edge AI Add-on API 2.2.0
|
| void ble_common_set_connected | ( | bool | connected | ) |
#include <applications/gesture_recognition/src/ble/ble_common.h>
Set the current BLE connection state.
Intended to be called from the BLE stack's connected()/disconnected() callbacks to keep the shared connection state in sync.
When CONFIG_BLE_MODE_NONE is enabled this function is still safe to call, but it becomes a no-op with respect to any BLE-stack specific notification (only the internal state is updated).
| connected | true if a peer is connected, false otherwise. |