18#ifndef NIMBLE_CPP_UUID_H_
19#define NIMBLE_CPP_UUID_H_
22#if defined(CONFIG_BT_ENABLED)
24# if defined(CONFIG_NIMBLE_CPP_IDF)
25# include "host/ble_uuid.h"
27# include "nimble/nimble/host/include/host/ble_uuid.h"
53 NimBLEUUID(uint32_t first, uint16_t second, uint16_t third, uint64_t fourth);
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:181
bool operator==(const NimBLEUUID &rhs) const
Convenience operator to check if this UUID is equal to another.
Definition NimBLEUUID.cpp:288
const NimBLEUUID & to16()
Convert 128 bit UUID to its 16 bit representation.
Definition NimBLEUUID.cpp:241
const ble_uuid_t * getBase() const
Get a pointer to the NimBLE UUID base structure.
Definition NimBLEUUID.cpp:171
const NimBLEUUID & to128()
Convert a UUID to its 128 bit representation.
Definition NimBLEUUID.cpp:222
NimBLEUUID()=default
Created a blank UUID.
std::string toString() const
Get a string representation of the UUID.
Definition NimBLEUUID.cpp:264
const NimBLEUUID & reverseByteOrder()
Reverse the byte order of the UUID.
Definition NimBLEUUID.cpp:273
bool operator!=(const NimBLEUUID &rhs) const
Convenience operator to check if this UUID is not equal to another.
Definition NimBLEUUID.cpp:326
const uint8_t * getValue() const
Get the uuid value.
Definition NimBLEUUID.cpp:153
static NimBLEUUID fromString(const std::string &uuid)
Definition NimBLEUUID.cpp:196
uint8_t bitSize() const
Get the bit size of the UUID, 16, 32 or 128.
Definition NimBLEUUID.cpp:144