Skip to content

BLEAdvertisedDevice

A representation of a BLE advertised device found by a scan.

詳細情報

メンバー

BLEAdvertisedDevice()

BLEAdvertisedDevice::BLEAdvertisedDevice()

getAddress()

Get the address.

BLEAddress BLEAdvertisedDevice::getAddress()

戻り値

BLEAddress

getAppearance()

Get the appearance.

uint16_t BLEAdvertisedDevice::getAppearance()

戻り値

uint16_t

getManufacturerData()

Get the manufacturer data.

std::string BLEAdvertisedDevice::getManufacturerData()

戻り値

std::string The manufacturer data of the advertised device.

getName()

Get the name.

std::string BLEAdvertisedDevice::getName()

戻り値

std::string The name of the advertised device.

getRSSI()

Get the RSSI.

int BLEAdvertisedDevice::getRSSI()

戻り値

int The RSSI of the advertised device.

getScan()

Get the scan object that created this advertisement.

BLEScan * BLEAdvertisedDevice::getScan()

戻り値

BLEScan* The scan object.

getServiceData()

Get the service data.

std::string BLEAdvertisedDevice::getServiceData()

戻り値

std::string The ServiceData of the advertised device.

getServiceDataUUID()

Get the service data UUID.

BLEUUID BLEAdvertisedDevice::getServiceDataUUID()

戻り値

BLEUUID The service data UUID.

getServiceUUID()

Get the Service UUID.

BLEUUID BLEAdvertisedDevice::getServiceUUID()

戻り値

BLEUUID The Service UUID of the advertised device.

getTXPower()

Get the TX Power.

int8_t BLEAdvertisedDevice::getTXPower()

戻り値

int8_t The TX Power of the advertised device.

getPayload()

uint8_t * BLEAdvertisedDevice::getPayload()

戻り値

uint8_t*

getPayloadLength()

size_t BLEAdvertisedDevice::getPayloadLength()

戻り値

size_t

getAddressType()

esp_ble_addr_type_t BLEAdvertisedDevice::getAddressType()

戻り値

esp_ble_addr_type_t

setAddressType()

void BLEAdvertisedDevice::setAddressType(esp_ble_addr_type_t type)

引数

  • esp_ble_addr_type_t type

isAdvertisingService()

Check advertised serviced for existence required UUID

bool BLEAdvertisedDevice::isAdvertisingService(BLEUUID uuid)

引数

  • BLEUUID uuid

戻り値

bool Return true if service is advertised

haveAppearance()

Does this advertisement have an appearance value?

bool BLEAdvertisedDevice::haveAppearance()

戻り値

bool True if there is an appearance value present.

haveManufacturerData()

Does this advertisement have manufacturer data?

bool BLEAdvertisedDevice::haveManufacturerData()

戻り値

bool True if there is manufacturer data present.

haveName()

Does this advertisement have a name value?

bool BLEAdvertisedDevice::haveName()

戻り値

bool True if there is a name value present.

haveRSSI()

Does this advertisement have a signal strength value?

bool BLEAdvertisedDevice::haveRSSI()

戻り値

bool True if there is a signal strength value present.

haveServiceData()

Does this advertisement have a service data value?

bool BLEAdvertisedDevice::haveServiceData()

戻り値

bool True if there is a service data value present.

haveServiceUUID()

Does this advertisement have a service UUID value?

bool BLEAdvertisedDevice::haveServiceUUID()

戻り値

bool True if there is a service UUID value present.

haveTXPower()

Does this advertisement have a transmission power value?

bool BLEAdvertisedDevice::haveTXPower()

戻り値

bool True if there is a transmission power value present.

toString()

Create a string representation of this device.

std::string BLEAdvertisedDevice::toString()

戻り値

std::string A string representation of this device.