Skip to content

BLERemoteService

A model of a remote BLE service.

詳細情報

メンバー

~BLERemoteService()

BLERemoteService::~BLERemoteService()

getCharacteristic()

Get the remote characteristic object for the characteristic UUID.

BLERemoteCharacteristic * BLERemoteService::getCharacteristic(const char *uuid)

引数

  • constchar * uuid Remote characteristic uuid.

戻り値

BLERemoteCharacteristic* Reference to the remote characteristic object.

getCharacteristic()

Get the characteristic object for the UUID.

BLERemoteCharacteristic * BLERemoteService::getCharacteristic(BLEUUID uuid)

引数

  • BLEUUID uuid Characteristic uuid.

戻り値

BLERemoteCharacteristic* Reference to the characteristic object.

getCharacteristic()

BLERemoteCharacteristic* BLERemoteService::getCharacteristic(uint16_t uuid)

引数

  • uint16_t uuid

戻り値

BLERemoteCharacteristic*

getCharacteristics()

Retrieve a map of all the characteristics of this service.

std::map< std::string, BLERemoteCharacteristic * > * BLERemoteService::getCharacteristics()

戻り値

std::map< , * > * A map of all the characteristics of this service.

getCharacteristicsByHandle()

Retrieve a map of all the characteristics of this service.

std::map< uint16_t, BLERemoteCharacteristic * > * BLERemoteService::getCharacteristicsByHandle()

戻り値

std::map< , * > * A map of all the characteristics of this service.

getCharacteristics()

This function is designed to get characteristics map when we have multiple characteristics with the same UUID

void BLERemoteService::getCharacteristics(std::map< uint16_t, BLERemoteCharacteristic * > *pCharacteristicMap)

引数

  • std::map< , * > * pCharacteristicMap

getClient()

Get the client associated with this service.

BLEClient * BLERemoteService::getClient(void)

戻り値

BLEClient* A reference to the client associated with this service.

getHandle()

uint16_t BLERemoteService::getHandle()

戻り値

uint16_t

getUUID()

BLEUUID BLERemoteService::getUUID(void)

戻り値

BLEUUID

getValue()

Read the value of a characteristic associated with this service.

std::string BLERemoteService::getValue(BLEUUID characteristicUuid)

引数

  • BLEUUID characteristicUuid

戻り値

std::string

setValue()

Set the value of a characteristic.

void BLERemoteService::setValue(BLEUUID characteristicUuid, std::string value)

引数

  • BLEUUID characteristicUuid The characteristic to set.
  • std::string value The value to set.

toString()

Create a string representation of this remote service.

std::string BLERemoteService::toString(void)

戻り値

std::string A string representation of this remote service.