NimBLE-Arduino 1.4.2
|
Advertisement data set by the programmer to be published by the BLE server. More...
#include <NimBLEAdvertising.h>
Public Member Functions | |
void | setAppearance (uint16_t appearance) |
Set the appearance. More... | |
void | setCompleteServices (const NimBLEUUID &uuid) |
Set a single service to advertise as a complete list of services. More... | |
void | setCompleteServices16 (const std::vector< NimBLEUUID > &v_uuid) |
Set the complete list of 16 bit services to advertise. More... | |
void | setCompleteServices32 (const std::vector< NimBLEUUID > &v_uuid) |
Set the complete list of 32 bit services to advertise. More... | |
void | setFlags (uint8_t) |
Set the advertisement flags. More... | |
void | setManufacturerData (const std::string &data) |
Set manufacturer specific data. More... | |
void | setManufacturerData (const std::vector< uint8_t > &data) |
Set manufacturer specific data. More... | |
void | setURI (const std::string &uri) |
Set the URI to advertise. More... | |
void | setName (const std::string &name) |
Set the complete name of this device. More... | |
void | setPartialServices (const NimBLEUUID &uuid) |
Set a single service to advertise as a partial list of services. More... | |
void | setPartialServices16 (const std::vector< NimBLEUUID > &v_uuid) |
Set the partial list of services to advertise. More... | |
void | setPartialServices32 (const std::vector< NimBLEUUID > &v_uuid) |
Set the partial list of services to advertise. More... | |
void | setServiceData (const NimBLEUUID &uuid, const std::string &data) |
Set the service data (UUID + data) More... | |
void | setShortName (const std::string &name) |
Set the short name. More... | |
void | addData (const std::string &data) |
Add data to the payload to be advertised. More... | |
void | addData (char *data, size_t length) |
Add data to the payload to be advertised. More... | |
void | addTxPower () |
Adds Tx power level to the advertisement data. | |
void | setPreferredParams (uint16_t min, uint16_t max) |
Set the preferred connection interval parameters. More... | |
std::string | getPayload () |
Retrieve the payload that is to be advertised. More... | |
void | clearData () |
Clear the advertisement data for reuse. | |
Advertisement data set by the programmer to be published by the BLE server.
void NimBLEAdvertisementData::addData | ( | char * | data, |
size_t | length | ||
) |
Add data to the payload to be advertised.
[in] | data | The data to be added to the payload. |
[in] | length | The size of data to be added to the payload. |
void NimBLEAdvertisementData::addData | ( | const std::string & | data | ) |
Add data to the payload to be advertised.
[in] | data | The data to be added to the payload. |
std::string NimBLEAdvertisementData::getPayload | ( | ) |
Retrieve the payload that is to be advertised.
void NimBLEAdvertisementData::setAppearance | ( | uint16_t | appearance | ) |
Set the appearance.
[in] | appearance | The appearance code value. |
void NimBLEAdvertisementData::setCompleteServices | ( | const NimBLEUUID & | uuid | ) |
Set a single service to advertise as a complete list of services.
[in] | uuid | The service to advertise. |
void NimBLEAdvertisementData::setCompleteServices16 | ( | const std::vector< NimBLEUUID > & | v_uuid | ) |
Set the complete list of 16 bit services to advertise.
[in] | v_uuid | A vector of 16 bit UUID's to advertise. |
void NimBLEAdvertisementData::setCompleteServices32 | ( | const std::vector< NimBLEUUID > & | v_uuid | ) |
Set the complete list of 32 bit services to advertise.
[in] | v_uuid | A vector of 32 bit UUID's to advertise. |
void NimBLEAdvertisementData::setFlags | ( | uint8_t | flag | ) |
Set the advertisement flags.
[in] | flag | The flags to be set in the advertisement.
|
void NimBLEAdvertisementData::setManufacturerData | ( | const std::string & | data | ) |
Set manufacturer specific data.
[in] | data | The manufacturer data to advertise. |
void NimBLEAdvertisementData::setManufacturerData | ( | const std::vector< uint8_t > & | data | ) |
Set manufacturer specific data.
[in] | data | The manufacturer data to advertise. |
void NimBLEAdvertisementData::setName | ( | const std::string & | name | ) |
Set the complete name of this device.
[in] | name | The name to advertise. |
void NimBLEAdvertisementData::setPartialServices | ( | const NimBLEUUID & | uuid | ) |
Set a single service to advertise as a partial list of services.
[in] | uuid | The service to advertise. |
void NimBLEAdvertisementData::setPartialServices16 | ( | const std::vector< NimBLEUUID > & | v_uuid | ) |
Set the partial list of services to advertise.
[in] | v_uuid | A vector of 16 bit UUID's to advertise. |
void NimBLEAdvertisementData::setPartialServices32 | ( | const std::vector< NimBLEUUID > & | v_uuid | ) |
Set the partial list of services to advertise.
[in] | v_uuid | A vector of 32 bit UUID's to advertise. |
void NimBLEAdvertisementData::setPreferredParams | ( | uint16_t | min, |
uint16_t | max | ||
) |
Set the preferred connection interval parameters.
[in] | min | The minimum interval desired. |
[in] | max | The maximum interval desired. |
void NimBLEAdvertisementData::setServiceData | ( | const NimBLEUUID & | uuid, |
const std::string & | data | ||
) |
Set the service data (UUID + data)
[in] | uuid | The UUID to set with the service data. |
[in] | data | The data to be associated with the service data advertised. |
void NimBLEAdvertisementData::setShortName | ( | const std::string & | name | ) |
Set the short name.
[in] | name | The short name of the device. |
void NimBLEAdvertisementData::setURI | ( | const std::string & | uri | ) |
Set the URI to advertise.
[in] | uri | The uri to advertise. |