ESPHome  2024.4.0
Public Member Functions | Data Fields
esphome::esp32_ble_client::BLECharacteristic Class Reference

#include <ble_characteristic.h>

Public Member Functions

 ~BLECharacteristic ()
 
void parse_descriptors ()
 
void release_descriptors ()
 
BLEDescriptorget_descriptor (espbt::ESPBTUUID uuid)
 
BLEDescriptorget_descriptor (uint16_t uuid)
 
BLEDescriptorget_descriptor_by_handle (uint16_t handle)
 
esp_err_t write_value (uint8_t *new_val, int16_t new_val_size)
 
esp_err_t write_value (uint8_t *new_val, int16_t new_val_size, esp_gatt_write_type_t write_type)
 

Data Fields

bool parsed = false
 
espbt::ESPBTUUID uuid
 
uint16_t handle
 
esp_gatt_char_prop_t properties
 
std::vector< BLEDescriptor * > descriptors
 
BLEServiceservice
 

Detailed Description

Definition at line 18 of file ble_characteristic.h.

Constructor & Destructor Documentation

◆ ~BLECharacteristic()

esphome::esp32_ble_client::BLECharacteristic::~BLECharacteristic ( )

Definition at line 14 of file ble_characteristic.cpp.

Member Function Documentation

◆ get_descriptor() [1/2]

BLEDescriptor * esphome::esp32_ble_client::BLECharacteristic::get_descriptor ( espbt::ESPBTUUID  uuid)

Definition at line 59 of file ble_characteristic.cpp.

◆ get_descriptor() [2/2]

BLEDescriptor * esphome::esp32_ble_client::BLECharacteristic::get_descriptor ( uint16_t  uuid)

Definition at line 68 of file ble_characteristic.cpp.

◆ get_descriptor_by_handle()

BLEDescriptor * esphome::esp32_ble_client::BLECharacteristic::get_descriptor_by_handle ( uint16_t  handle)

Definition at line 71 of file ble_characteristic.cpp.

◆ parse_descriptors()

void esphome::esp32_ble_client::BLECharacteristic::parse_descriptors ( )

Definition at line 26 of file ble_characteristic.cpp.

◆ release_descriptors()

void esphome::esp32_ble_client::BLECharacteristic::release_descriptors ( )

Definition at line 19 of file ble_characteristic.cpp.

◆ write_value() [1/2]

esp_err_t esphome::esp32_ble_client::BLECharacteristic::write_value ( uint8_t *  new_val,
int16_t  new_val_size 
)

Definition at line 92 of file ble_characteristic.cpp.

◆ write_value() [2/2]

esp_err_t esphome::esp32_ble_client::BLECharacteristic::write_value ( uint8_t *  new_val,
int16_t  new_val_size,
esp_gatt_write_type_t  write_type 
)

Definition at line 81 of file ble_characteristic.cpp.

Field Documentation

◆ descriptors

std::vector<BLEDescriptor *> esphome::esp32_ble_client::BLECharacteristic::descriptors

Definition at line 25 of file ble_characteristic.h.

◆ handle

uint16_t esphome::esp32_ble_client::BLECharacteristic::handle

Definition at line 23 of file ble_characteristic.h.

◆ parsed

bool esphome::esp32_ble_client::BLECharacteristic::parsed = false

Definition at line 21 of file ble_characteristic.h.

◆ properties

esp_gatt_char_prop_t esphome::esp32_ble_client::BLECharacteristic::properties

Definition at line 24 of file ble_characteristic.h.

◆ service

BLEService* esphome::esp32_ble_client::BLECharacteristic::service

Definition at line 33 of file ble_characteristic.h.

◆ uuid

espbt::ESPBTUUID esphome::esp32_ble_client::BLECharacteristic::uuid

Definition at line 22 of file ble_characteristic.h.


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