9#include <esp_gatt_defs.h>
10#include <esp_gatts_api.h>
13namespace esp32_ble_server {
15using namespace esp32_ble;
16using namespace bytebuffer;
17using namespace event_emitter;
19class BLECharacteristic;
21namespace BLEDescriptorEvt {
34 void set_value(std::vector<uint8_t> buffer);
37 void gatts_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param);
A class modelled on the Java ByteBuffer class.
std::vector< uint8_t > get_data()
enum esphome::esp32_ble_server::BLEDescriptor::State INIT
esp_gatt_perm_t permissions_
void set_value(ByteBuffer buffer)
void do_create(BLECharacteristic *characteristic)
void gatts_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param)
BLEDescriptor(ESPBTUUID uuid, uint16_t max_len=100, bool read=true, bool write=true)
ESPBTUUID get_uuid() const
void set_value(std::vector< uint8_t > buffer)
BLECharacteristic * characteristic_
Providing packet encoding functions for exchanging data with a remote host.