Nol.A SDK Library 26.11.2
For IoT System Software Development
Loading...
Searching...
No Matches
BLEUUID Class Reference

A model of a BLE UUID. More...

#include <BLEUUID.hpp>

Public Member Functions

 BLEUUID (std::string uuid)
 BLEUUID (uint16_t uuid)
 BLEUUID (uint32_t uuid)
 BLEUUID (uint8_t *pData, size_t size, bool msbFirst)
uint8_t bitSize ()
bool equals (BLEUUID uuid)
BLEUUID to128 ()
std::string toString ()
bool operator== (uint16_t other) const
bool operator== (uint32_t other) const

Static Public Member Functions

static BLEUUID fromString (std::string uuid)

Public Attributes

uint16_t len
union { 
   uint16_t   raw16 
   uint32_t   raw32 
   uint8_t   raw128 [16] 
}; 

Detailed Description

Member Function Documentation

◆ operator==() [1/2]

bool BLEUUID::operator== ( uint16_t other) const
inline
61 {
62 return (len == 2 && raw16 == other);
63 }

◆ operator==() [2/2]

bool BLEUUID::operator== ( uint32_t other) const
inline
65 {
66 return (len == 4 && raw32 == other);
67 }

The documentation for this class was generated from the following file: