SDK
23.9.2
For IoT System Software Development
|
A BLE device address. More...
#include <BLEAddress.hpp>
Public Types | |
enum | Type_t { TYPE_PUBLIC = 0x00, TYPE_RANDOM = 0x01, TYPE_RPA_PUBLIC = 0x02, TYPE_RPA_RANDOM = 0x03, TYPE_UNKNOWN = 0xFF } |
Public Member Functions | |
BLEAddress (const uint8_t *address) | |
Create an address from the native ESP32 representation. More... | |
BLEAddress (std::string stringAddress) | |
Create an address from a hex string. More... | |
bool | equals (BLEAddress otherAddress) |
Determine if this address equals another. More... | |
const uint8_t * | getNative () |
Return the native representation of the address. More... | |
std::string | toString () |
Convert a BLE address to a string. More... | |
A BLE device address.
Every BLE device has a unique address which can be used to identify it and form connections.
BLEAddress::BLEAddress | ( | const uint8_t * | address | ) |
BLEAddress::BLEAddress | ( | std::string | stringAddress | ) |
Create an address from a hex string.
A hex string is of the format:
which is 17 characters in length.
[in] | stringAddress | The hex representation of the address. |
bool BLEAddress::equals | ( | BLEAddress | otherAddress | ) |
Determine if this address equals another.
[in] | otherAddress | The other address to compare against. |
const uint8_t * BLEAddress::getNative | ( | ) |
std::string BLEAddress::toString | ( | ) |
Convert a BLE address to a string.
A string representation of an address is in the format: