5 #include <esp_gattc_api.h> 15 namespace radon_eye_rd200 {
17 static const char *
const SERVICE_UUID =
"00001523-1212-efde-1523-785feabcd123";
18 static const char *
const WRITE_CHARACTERISTIC_UUID =
"00001524-1212-efde-1523-785feabcd123";
19 static const char *
const READ_CHARACTERISTIC_UUID =
"00001525-1212-efde-1523-785feabcd123";
29 esp_ble_gattc_cb_param_t *param)
override;
void set_radon_long_term(sensor::Sensor *radon_long_term)
esp32_ble_tracker::ESPBTUUID service_uuid_
This class simplifies creating components that periodically check a state.
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param) override
esp32_ble_tracker::ESPBTUUID sensors_read_characteristic_uuid_
sensor::Sensor * radon_sensor_
void request_read_values_()
void set_radon(sensor::Sensor *radon)
esp32_ble_tracker::ESPBTUUID sensors_write_characteristic_uuid_
void dump_config() override
sensor::Sensor * radon_long_term_sensor_
bool is_valid_radon_value_(float radon)
Implementation of SPI Controller mode.
void write_query_message_()
void read_sensors_(uint8_t *value, uint16_t value_len)
Base-class for all sensors.