Skip to content

BLECharacteristicMap

A data mapping used to manage the set of BLE characteristics known to the server.

詳細情報

メンバー

setByUUID()

void BLECharacteristicMap::setByUUID(BLECharacteristic *pCharacteristic, const char *uuid)

引数

  • BLECharacteristic* pCharacteristic
  • constchar * uuid

setByUUID()

Set the characteristic by UUID.

void BLECharacteristicMap::setByUUID(BLECharacteristic *pCharacteristic, BLEUUID uuid)

引数

  • BLECharacteristic* pCharacteristic
  • BLEUUID uuid The uuid of the characteristic.

setByHandle()

Set the characteristic by handle.

void BLECharacteristicMap::setByHandle(uint16_t handle, BLECharacteristic *pCharacteristic)

引数

  • uint16_t handle The handle of the characteristic.
  • BLECharacteristic* pCharacteristic

getByUUID()

Return the characteristic by UUID.

BLECharacteristic * BLECharacteristicMap::getByUUID(const char *uuid)

引数

  • constchar * uuid

戻り値

BLECharacteristic* The characteristic.

getByUUID()

Return the characteristic by UUID.

BLECharacteristic * BLECharacteristicMap::getByUUID(BLEUUID uuid)

引数

  • BLEUUID uuid

戻り値

BLECharacteristic* The characteristic.

getByHandle()

Return the characteristic by handle.

BLECharacteristic * BLECharacteristicMap::getByHandle(uint16_t handle)

引数

  • uint16_t handle The handle to look up the characteristic.

戻り値

BLECharacteristic* The characteristic.

getFirst()

Get the first characteristic in the map.

BLECharacteristic * BLECharacteristicMap::getFirst()

戻り値

BLECharacteristic* The first characteristic in the map.

getNext()

Get the next characteristic in the map.

BLECharacteristic * BLECharacteristicMap::getNext()

戻り値

BLECharacteristic* The next characteristic in the map.

toString()

Return a string representation of the characteristic map.

std::string BLECharacteristicMap::toString()

戻り値

std::string A string representation of the characteristic map.

handleGATTServerEvent()

Pass the GATT server event onwards to each of the characteristics found in the mapping

void BLECharacteristicMap::handleGATTServerEvent(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param)

引数

  • esp_gatts_cb_event_t event
  • esp_gatt_if_t gatts_if
  • esp_ble_gatts_cb_param_t* param