BLEDescriptorMap¶
A management structure for BLE descriptors.
詳細情報¶
メンバー¶
setByUUID()¶
Set the descriptor by UUID.
void BLEDescriptorMap::setByUUID(const char *uuid, BLEDescriptor *pDescriptor)
引数
- constchar *
uuid
The uuid of the descriptor. - BLEDescriptor*
pDescriptor
setByUUID()¶
Set the descriptor by UUID.
void BLEDescriptorMap::setByUUID(BLEUUID uuid, BLEDescriptor *pDescriptor)
引数
- BLEUUID
uuid
The uuid of the descriptor. - BLEDescriptor*
pDescriptor
setByHandle()¶
Set the descriptor by handle.
void BLEDescriptorMap::setByHandle(uint16_t handle, BLEDescriptor *pDescriptor)
引数
- uint16_t
handle
The handle of the descriptor. - BLEDescriptor*
pDescriptor
getByUUID()¶
Return the descriptor by UUID.
BLEDescriptor * BLEDescriptorMap::getByUUID(const char *uuid)
引数
- constchar *
uuid
戻り値
BLEDescriptor* The descriptor. If not present, then nullptr is returned.
getByUUID()¶
Return the descriptor by UUID.
BLEDescriptor * BLEDescriptorMap::getByUUID(BLEUUID uuid)
引数
- BLEUUID
uuid
戻り値
BLEDescriptor* The descriptor. If not present, then nullptr is returned.
getByHandle()¶
Return the descriptor by handle.
BLEDescriptor * BLEDescriptorMap::getByHandle(uint16_t handle)
引数
- uint16_t
handle
The handle to look up the descriptor.
戻り値
BLEDescriptor* The descriptor.
toString()¶
Return a string representation of the descriptor map.
std::string BLEDescriptorMap::toString()
戻り値
std::string A string representation of the descriptor map.
handleGATTServerEvent()¶
void BLEDescriptorMap::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
getFirst()¶
Get the first descriptor in the map.
BLEDescriptor * BLEDescriptorMap::getFirst()
戻り値
BLEDescriptor* The first descriptor in the map.
getNext()¶
Get the next descriptor in the map.
BLEDescriptor * BLEDescriptorMap::getNext()
戻り値
BLEDescriptor* The next descriptor in the map.