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