ESPHome  2024.10.0
Public Member Functions | Static Public Member Functions | Protected Attributes
esphome::esp32_ble::ESPBTUUID Class Reference

#include <ble_uuid.h>

Public Member Functions

 ESPBTUUID ()
 
ESPBTUUID as_128bit () const
 
bool contains (uint8_t data1, uint8_t data2) const
 
bool operator== (const ESPBTUUID &uuid) const
 
bool operator!= (const ESPBTUUID &uuid) const
 
esp_bt_uuid_t get_uuid () const
 
std::string to_string () const
 

Static Public Member Functions

static ESPBTUUID from_uint16 (uint16_t uuid)
 
static ESPBTUUID from_uint32 (uint32_t uuid)
 
static ESPBTUUID from_raw (const uint8_t *data)
 
static ESPBTUUID from_raw_reversed (const uint8_t *data)
 
static ESPBTUUID from_raw (const std::string &data)
 
static ESPBTUUID from_uuid (esp_bt_uuid_t uuid)
 

Protected Attributes

esp_bt_uuid_t uuid_
 

Detailed Description

Definition at line 14 of file ble_uuid.h.

Constructor & Destructor Documentation

◆ ESPBTUUID()

esphome::esp32_ble::ESPBTUUID::ESPBTUUID ( )

Definition at line 15 of file ble_uuid.cpp.

Member Function Documentation

◆ as_128bit()

ESPBTUUID esphome::esp32_ble::ESPBTUUID::as_128bit ( ) const

Definition at line 110 of file ble_uuid.cpp.

◆ contains()

bool esphome::esp32_ble::ESPBTUUID::contains ( uint8_t  data1,
uint8_t  data2 
) const

Definition at line 126 of file ble_uuid.cpp.

◆ from_raw() [1/2]

ESPBTUUID esphome::esp32_ble::ESPBTUUID::from_raw ( const uint8_t *  data)
static

Definition at line 28 of file ble_uuid.cpp.

◆ from_raw() [2/2]

ESPBTUUID esphome::esp32_ble::ESPBTUUID::from_raw ( const std::string &  data)
static

Definition at line 41 of file ble_uuid.cpp.

◆ from_raw_reversed()

ESPBTUUID esphome::esp32_ble::ESPBTUUID::from_raw_reversed ( const uint8_t *  data)
static

Definition at line 34 of file ble_uuid.cpp.

◆ from_uint16()

ESPBTUUID esphome::esp32_ble::ESPBTUUID::from_uint16 ( uint16_t  uuid)
static

Definition at line 16 of file ble_uuid.cpp.

◆ from_uint32()

ESPBTUUID esphome::esp32_ble::ESPBTUUID::from_uint32 ( uint32_t  uuid)
static

Definition at line 22 of file ble_uuid.cpp.

◆ from_uuid()

ESPBTUUID esphome::esp32_ble::ESPBTUUID::from_uuid ( esp_bt_uuid_t  uuid)
static

Definition at line 98 of file ble_uuid.cpp.

◆ get_uuid()

esp_bt_uuid_t esphome::esp32_ble::ESPBTUUID::get_uuid ( ) const

Definition at line 171 of file ble_uuid.cpp.

◆ operator!=()

bool esphome::esp32_ble::ESPBTUUID::operator!= ( const ESPBTUUID uuid) const
inline

Definition at line 34 of file ble_uuid.h.

◆ operator==()

bool esphome::esp32_ble::ESPBTUUID::operator== ( const ESPBTUUID uuid) const

Definition at line 144 of file ble_uuid.cpp.

◆ to_string()

std::string esphome::esp32_ble::ESPBTUUID::to_string ( ) const

Definition at line 172 of file ble_uuid.cpp.

Field Documentation

◆ uuid_

esp_bt_uuid_t esphome::esp32_ble::ESPBTUUID::uuid_
protected

Definition at line 41 of file ble_uuid.h.


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