18#ifndef NIMBLE_CPP_UUID_H_
19#define NIMBLE_CPP_UUID_H_
24# if defined(CONFIG_NIMBLE_CPP_IDF)
25# include "host/ble_uuid.h"
27# include "nimble/nimble/host/include/host/ble_uuid.h"
67 operator std::string()
const;
A model of a BLE UUID.
Definition NimBLEUUID.h:41
bool equals(const NimBLEUUID &uuid) const
Compare a UUID against this UUID.
Definition NimBLEUUID.cpp:180
bool operator==(const NimBLEUUID &rhs) const
Convenience operator to check if this UUID is equal to another.
Definition NimBLEUUID.cpp:287
const NimBLEUUID & to16()
Convert 128 bit UUID to its 16 bit representation.
Definition NimBLEUUID.cpp:240
const ble_uuid_t * getBase() const
Get a pointer to the NimBLE UUID base structure.
Definition NimBLEUUID.cpp:170
const NimBLEUUID & to128()
Convert a UUID to its 128 bit representation.
Definition NimBLEUUID.cpp:221
NimBLEUUID()=default
Created a blank UUID.
std::string toString() const
Get a string representation of the UUID.
Definition NimBLEUUID.cpp:263
const NimBLEUUID & reverseByteOrder()
Reverse the byte order of the UUID.
Definition NimBLEUUID.cpp:272
bool operator!=(const NimBLEUUID &rhs) const
Convenience operator to check if this UUID is not equal to another.
Definition NimBLEUUID.cpp:325
const uint8_t * getValue() const
Get the uuid value.
Definition NimBLEUUID.cpp:152
static NimBLEUUID fromString(const std::string &uuid)
Definition NimBLEUUID.cpp:195
uint8_t bitSize() const
Get the bit size of the UUID, 16, 32 or 128.
Definition NimBLEUUID.cpp:143