Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ ble_common_set_connected()

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).

Parameters
connectedtrue if a peer is connected, false otherwise.