18#ifndef NIMBLE_CPP_UUID_H_
19#define NIMBLE_CPP_UUID_H_
21#include "syscfg/syscfg.h"
22#if CONFIG_BT_NIMBLE_ENABLED
24# if defined(CONFIG_NIMBLE_CPP_IDF)
25# include "host/ble_uuid.h"
27# include "nimble/nimble/host/include/host/ble_uuid.h"
68 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:194
bool operator==(const NimBLEUUID &rhs) const
Convenience operator to check if this UUID is equal to another.
Definition NimBLEUUID.cpp:301
const NimBLEUUID & to16()
Convert 128 bit UUID to its 16 bit representation.
Definition NimBLEUUID.cpp:254
const ble_uuid_t * getBase() const
Get a pointer to the NimBLE UUID base structure.
Definition NimBLEUUID.cpp:184
const NimBLEUUID & to128()
Convert a UUID to its 128 bit representation.
Definition NimBLEUUID.cpp:235
NimBLEUUID()=default
Created a blank UUID.
std::string toString() const
Get a string representation of the UUID.
Definition NimBLEUUID.cpp:277
const NimBLEUUID & reverseByteOrder()
Reverse the byte order of the UUID.
Definition NimBLEUUID.cpp:286
bool operator!=(const NimBLEUUID &rhs) const
Convenience operator to check if this UUID is not equal to another.
Definition NimBLEUUID.cpp:339
const uint8_t * getValue() const
Get the uuid value.
Definition NimBLEUUID.cpp:166
static NimBLEUUID fromString(const std::string &uuid)
Definition NimBLEUUID.cpp:209
uint8_t bitSize() const
Get the bit size of the UUID, 16, 32 or 128.
Definition NimBLEUUID.cpp:157