BLEService¶
The model of a BLE service.
詳細情報¶
メンバー¶
m_instId¶
uint8_t BLEService::m_instId
addCharacteristic()¶
Add a characteristic to the service.
void BLEService::addCharacteristic(BLECharacteristic *pCharacteristic)
引数
- BLECharacteristic*
pCharacteristic
A pointer to the characteristic to be added.
createCharacteristic()¶
Create a new BLE Characteristic associated with this service.
BLECharacteristic * BLEService::createCharacteristic(const char *uuid, uint32_t properties)
引数
- constchar *
uuid
- The UUID of the characteristic. - uint32_t
properties
- The properties of the characteristic.
戻り値
BLECharacteristic* The new BLE characteristic.
createCharacteristic()¶
Create a new BLE Characteristic associated with this service.
BLECharacteristic * BLEService::createCharacteristic(BLEUUID uuid, uint32_t properties)
引数
- BLEUUID
uuid
- The UUID of the characteristic. - uint32_t
properties
- The properties of the characteristic.
戻り値
BLECharacteristic* The new BLE characteristic.
dump()¶
Dump details of this BLE GATT service.
void BLEService::dump()
executeCreate()¶
Create the service. Create the service.
void BLEService::executeCreate(BLEServer *pServer)
引数
- BLEServer*
pServer
executeDelete()¶
Delete the service. Delete the service.
void BLEService::executeDelete()
getCharacteristic()¶
BLECharacteristic * BLEService::getCharacteristic(const char *uuid)
引数
- constchar *
uuid
戻り値
BLECharacteristic*
getCharacteristic()¶
BLECharacteristic * BLEService::getCharacteristic(BLEUUID uuid)
引数
- BLEUUID
uuid
戻り値
BLECharacteristic*
getUUID()¶
Get the UUID of the service.
BLEUUID BLEService::getUUID()
戻り値
BLEUUID the UUID of the service.
getServer()¶
Get the BLE server associated with this service.
BLEServer * BLEService::getServer()
戻り値
BLEServer* The associated with this service.
start()¶
Start the service. Here we wish to start the service which means that we will respond to partner requests about it. Starting a service also means that we can create the corresponding characteristics.
void BLEService::start()
stop()¶
Stop the service.
void BLEService::stop()
toString()¶
Return a string representation of this service. A service is defined by:
std::string BLEService::toString()
戻り値
std::string
getHandle()¶
Get the handle associated with this service.
uint16_t BLEService::getHandle()
戻り値
uint16_t The handle associated with this service.