Skip to content

BLEServerCallbacks

Callbacks associated with the operation of a BLE server.

詳細情報

メンバー

~BLEServerCallbacks()

virtual BLEServerCallbacks::~BLEServerCallbacks()

onConnect()

Handle a new client connection.

When a new client connects, we are invoked.

void BLEServerCallbacks::onConnect(BLEServer *pServer)

引数

  • BLEServer* pServer A reference to the BLE server that received the client connection.

onConnect()

void BLEServerCallbacks::onConnect(BLEServer *pServer, esp_ble_gatts_cb_param_t *param)

引数

  • BLEServer* pServer
  • esp_ble_gatts_cb_param_t* param

onDisconnect()

Handle an existing client disconnection.

When an existing client disconnects, we are invoked.

void BLEServerCallbacks::onDisconnect(BLEServer *pServer)

引数

  • BLEServer* pServer A reference to the BLE server that received the existing client disconnection.