ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
ble_characteristic.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef USE_ESP32
6#ifdef USE_ESP32_BLE_DEVICE
7
9
10#include "ble_descriptor.h"
11
12#include <vector>
13
15
17
18class BLEService;
19
21 public:
23 bool parsed = false;
25 uint16_t handle;
26 esp_gatt_char_prop_t properties;
27 std::vector<BLEDescriptor *> descriptors;
28 void parse_descriptors();
33 esp_err_t write_value(uint8_t *new_val, int16_t new_val_size);
34 esp_err_t write_value(uint8_t *new_val, int16_t new_val_size, esp_gatt_write_type_t write_type);
36};
37
38} // namespace esphome::esp32_ble_client
39
40#endif // USE_ESP32_BLE_DEVICE
41#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)