Skip to content

BLEAdvertisementData

Advertisement data set by the programmer to be published by the BLE server.

詳細情報

メンバー

setAppearance()

Set the appearance.

void BLEAdvertisementData::setAppearance(uint16_t appearance)

引数

  • uint16_t appearance The appearance code value.

setCompleteServices()

Set the complete services.

void BLEAdvertisementData::setCompleteServices(BLEUUID uuid)

引数

  • BLEUUID uuid The single service to advertise.

setFlags()

Set the advertisement flags.

void BLEAdvertisementData::setFlags(uint8_t)

引数

  • uint8_t ``

setManufacturerData()

Set manufacturer specific data.

void BLEAdvertisementData::setManufacturerData(std::string data)

引数

  • std::string data Manufacturer data.

setName()

Set the name.

void BLEAdvertisementData::setName(std::string name)

引数

  • std::string name

setPartialServices()

Set the partial services.

void BLEAdvertisementData::setPartialServices(BLEUUID uuid)

引数

  • BLEUUID uuid The single service to advertise.

setServiceData()

Set the service data (UUID + data)

void BLEAdvertisementData::setServiceData(BLEUUID uuid, std::string data)

引数

  • BLEUUID uuid The UUID to set with the service data. Size of UUID will be used.
  • std::string data The data to be associated with the service data advert.

setShortName()

Set the short name.

void BLEAdvertisementData::setShortName(std::string name)

引数

  • std::string name

addData()

Add data to the payload to be advertised.

void BLEAdvertisementData::addData(std::string data)

引数

  • std::string data The data to be added to the payload.

getPayload()

Retrieve the payload that is to be advertised.

std::string BLEAdvertisementData::getPayload()

戻り値

std::string The payload that is to be advertised.