BLEServiceMap¶
A data structure that manages the BLE servers owned by a BLE server.
詳細情報¶
メンバー¶
getByHandle()¶
Return the service by handle.
BLEService * BLEServiceMap::getByHandle(uint16_t handle)
引数
- uint16_t
handle
The handle to look up the service.
戻り値
BLEService* The service.
getByUUID()¶
Return the service by UUID.
BLEService * BLEServiceMap::getByUUID(const char *uuid)
引数
- constchar *
uuid
戻り値
BLEService* The characteristic.
getByUUID()¶
Return the service by UUID.
BLEService * BLEServiceMap::getByUUID(BLEUUID uuid, uint8_t inst_id=0)
引数
- BLEUUID
uuid
- uint8_t
inst_id
戻り値
BLEService* The characteristic.
handleGATTServerEvent()¶
void BLEServiceMap::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
setByHandle()¶
Set the service by handle.
void BLEServiceMap::setByHandle(uint16_t handle, BLEService *service)
引数
- uint16_t
handle
The handle of the service. - BLEService*
service
The service to cache.
setByUUID()¶
void BLEServiceMap::setByUUID(const char *uuid, BLEService *service)
引数
- constchar *
uuid
- BLEService*
service
setByUUID()¶
Set the service by UUID.
void BLEServiceMap::setByUUID(BLEUUID uuid, BLEService *service)
引数
- BLEUUID
uuid
The uuid of the service. - BLEService*
service
toString()¶
Return a string representation of the service map.
std::string BLEServiceMap::toString()
戻り値
std::string A string representation of the service map.
getFirst()¶
Get the first service in the map.
BLEService * BLEServiceMap::getFirst()
戻り値
BLEService* The first service in the map.
getNext()¶
Get the next service in the map.
BLEService * BLEServiceMap::getNext()
戻り値
BLEService* The next service in the map.
removeService()¶
Removes service from maps.
void BLEServiceMap::removeService(BLEService *service)
引数
- BLEService*
service
getRegisteredServiceCount()¶
Returns the amount of registered services
int BLEServiceMap::getRegisteredServiceCount()
戻り値
int amount of registered services