ESPHome  2024.5.5
ble_characteristic.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef USE_ESP32
4 
6 
7 #include "ble_descriptor.h"
8 
9 #include <vector>
10 
11 namespace esphome {
12 namespace esp32_ble_client {
13 
15 
16 class BLEService;
17 
19  public:
21  bool parsed = false;
23  uint16_t handle;
24  esp_gatt_char_prop_t properties;
25  std::vector<BLEDescriptor *> descriptors;
26  void parse_descriptors();
27  void release_descriptors();
29  BLEDescriptor *get_descriptor(uint16_t uuid);
30  BLEDescriptor *get_descriptor_by_handle(uint16_t handle);
31  esp_err_t write_value(uint8_t *new_val, int16_t new_val_size);
32  esp_err_t write_value(uint8_t *new_val, int16_t new_val_size, esp_gatt_write_type_t write_type);
34 };
35 
36 } // namespace esp32_ble_client
37 } // namespace esphome
38 
39 #endif // USE_ESP32
esp_err_t write_value(uint8_t *new_val, int16_t new_val_size)
BLEDescriptor * get_descriptor_by_handle(uint16_t handle)
BLEDescriptor * get_descriptor(espbt::ESPBTUUID uuid)
std::vector< BLEDescriptor * > descriptors
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7