ESPHome 2025.5.0
Loading...
Searching...
No Matches
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
11namespace esphome {
12namespace esp32_ble_client {
13
15
16class 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();
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
BLEDescriptor * get_descriptor(espbt::ESPBTUUID uuid)
BLEDescriptor * get_descriptor_by_handle(uint16_t handle)
esp_err_t write_value(uint8_t *new_val, int16_t new_val_size)
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7