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

#include <ble_uuid.h>

Public Member Functions

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 (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


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 103 of file ble_uuid.cpp.

◆ contains()

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

Definition at line 119 of file ble_uuid.cpp.

◆ from_raw() [1/2]

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

Definition at line 28 of file ble_uuid.cpp.

◆ from_raw() [2/2]

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

Definition at line 34 of file ble_uuid.cpp.

◆ from_uint16()

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

Definition at line 16 of file ble_uuid.cpp.

◆ from_uint32()

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

Definition at line 22 of file ble_uuid.cpp.

◆ from_uuid()

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

Definition at line 91 of file ble_uuid.cpp.

◆ get_uuid()

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

Definition at line 164 of file ble_uuid.cpp.

◆ operator!=()

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

Definition at line 33 of file ble_uuid.h.

◆ operator==()

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

Definition at line 137 of file ble_uuid.cpp.

◆ to_string()

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

Definition at line 165 of file ble_uuid.cpp.

Field Documentation

◆ uuid_

esp_bt_uuid_t esphome::esp32_ble::ESPBTUUID::uuid_

Definition at line 40 of file ble_uuid.h.

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