SDK
23.9.2
For IoT System Software Development
|
A data structure that manages the BLE servers owned by a BLE server. More...
#include <BLEServer.hpp>
Public Member Functions | |
BLEService * | getByHandle (uint16_t handle) |
Return the service by handle. More... | |
BLEService * | getByUUID (const char *uuid) |
Return the service by UUID. More... | |
BLEService * | getByUUID (BLEUUID uuid, uint8_t inst_id=0) |
Return the service by UUID. More... | |
void | handleGATTServerEvent (void *) |
void | setByHandle (uint16_t handle, BLEService *service) |
Set the service by handle. More... | |
void | setByUUID (const char *uuid, BLEService *service) |
void | setByUUID (BLEUUID uuid, BLEService *service) |
Set the service by UUID. More... | |
std::string | toString () |
Return a string representation of the service map. More... | |
BLEService * | getFirst () |
Get the first service in the map. More... | |
BLEService * | getNext () |
Get the next service in the map. More... | |
void | removeService (BLEService *service) |
Removes service from maps. More... | |
int | getRegisteredServiceCount () |
Returns the amount of registered services. More... | |
A data structure that manages the BLE servers owned by a BLE server.
BLEService * BLEServiceMap::getByHandle | ( | uint16_t | handle | ) |
BLEService * BLEServiceMap::getByUUID | ( | BLEUUID | uuid, |
uint8_t | inst_id = 0 |
||
) |
Return the service by UUID.
[in] | UUID | The UUID to look up the service. |
BLEService * BLEServiceMap::getByUUID | ( | const char * | uuid | ) |
BLEService * BLEServiceMap::getFirst | ( | ) |
Get the first service in the map.
BLEService * BLEServiceMap::getNext | ( | ) |
Get the next service in the map.
int BLEServiceMap::getRegisteredServiceCount | ( | ) |
void BLEServiceMap::removeService | ( | BLEService * | service | ) |
Removes service from maps.
void BLEServiceMap::setByHandle | ( | uint16_t | handle, |
BLEService * | service | ||
) |
void BLEServiceMap::setByUUID | ( | BLEUUID | uuid, |
BLEService * | service | ||
) |
Set the service by UUID.
[in] | uuid | The uuid of the service. |
[in] | characteristic | The service to cache. |
std::string BLEServiceMap::toString | ( | ) |