11#include <esp_gattc_api.h>
25 esp_ble_gattc_cb_param_t *param)
override;
42 float parse_data_(uint8_t *value, uint16_t value_len);
This class simplifies creating components that periodically check a state.
void set_service_uuid32(uint32_t uuid)
espbt::ESPBTUUID service_uuid_
void set_data_to_value(data_to_value_t &&lambda)
optional< data_to_value_t > data_to_value_func_
void set_service_uuid16(uint16_t uuid)
void set_service_uuid128(uint8_t *uuid)
void set_char_uuid128(uint8_t *uuid)
void set_descr_uuid16(uint16_t uuid)
float get_setup_priority() const override
void set_char_uuid32(uint32_t uuid)
float parse_data_(uint8_t *value, uint16_t value_len)
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param) override
void set_descr_uuid32(uint32_t uuid)
espbt::ESPBTUUID descr_uuid_
void dump_config() override
espbt::ESPBTUUID char_uuid_
void set_enable_notify(bool notify)
void set_char_uuid16(uint16_t uuid)
void set_descr_uuid128(uint8_t *uuid)
Base-class for all sensors.
std::function< float(std::vector< uint8_t >)> data_to_value_t
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.