ESPHome  2022.6.3
Public Member Functions | Data Fields
esphome::ble_client::BLECharacteristic Class Reference

#include <ble_client.h>

Public Member Functions

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

Data Fields

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

Detailed Description

Definition at line 53 of file ble_client.h.

Constructor & Destructor Documentation

◆ ~BLECharacteristic()

esphome::ble_client::BLECharacteristic::~BLECharacteristic ( )

Definition at line 389 of file ble_client.cpp.

Member Function Documentation

◆ get_descriptor() [1/2]

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

Definition at line 423 of file ble_client.cpp.

◆ get_descriptor() [2/2]

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

Definition at line 430 of file ble_client.cpp.

◆ parse_descriptors()

void esphome::ble_client::BLECharacteristic::parse_descriptors ( )

Definition at line 394 of file ble_client.cpp.

◆ write_value() [1/2]

void esphome::ble_client::BLECharacteristic::write_value ( uint8_t *  new_val,
int16_t  new_val_size 
)

Definition at line 443 of file ble_client.cpp.

◆ write_value() [2/2]

void esphome::ble_client::BLECharacteristic::write_value ( uint8_t *  new_val,
int16_t  new_val_size,
esp_gatt_write_type_t  write_type 
)

Definition at line 434 of file ble_client.cpp.

Field Documentation

◆ descriptors

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

Definition at line 59 of file ble_client.h.

◆ handle

uint16_t esphome::ble_client::BLECharacteristic::handle

Definition at line 57 of file ble_client.h.

◆ properties

esp_gatt_char_prop_t esphome::ble_client::BLECharacteristic::properties

Definition at line 58 of file ble_client.h.

◆ service

BLEService* esphome::ble_client::BLECharacteristic::service

Definition at line 65 of file ble_client.h.

◆ uuid

espbt::ESPBTUUID esphome::ble_client::BLECharacteristic::uuid

Definition at line 56 of file ble_client.h.


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