ESPHome 2026.5.1
Loading...
Searching...
No Matches
radon_eye_rd200.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef USE_ESP32
4
5#include <esp_gattc_api.h>
6#include <algorithm>
7#include <iterator>
12#include "esphome/core/log.h"
13
15
17 public:
19
20 void dump_config() override;
21 void update() override;
22
23 void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
24 esp_ble_gattc_cb_param_t *param) override;
25
26 void set_radon(sensor::Sensor *radon) { radon_sensor_ = radon; }
27 void set_radon_long_term(sensor::Sensor *radon_long_term) { radon_long_term_sensor_ = radon_long_term; }
28
29 protected:
30 void read_sensors_(uint8_t *value, uint16_t value_len);
31
34
36 uint16_t read_handle_;
37 uint16_t write_handle_;
41};
42
43} // namespace esphome::radon_eye_rd200
44
45#endif // USE_ESP32
This class simplifies creating components that periodically check a state.
Definition component.h:602
void read_sensors_(uint8_t *value, uint16_t value_len)
void set_radon_long_term(sensor::Sensor *radon_long_term)
esp32_ble_tracker::ESPBTUUID sensors_write_characteristic_uuid_
esp32_ble_tracker::ESPBTUUID service_uuid_
esp32_ble_tracker::ESPBTUUID sensors_read_characteristic_uuid_
void set_radon(sensor::Sensor *radon)
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param) override
Base-class for all sensors.
Definition sensor.h:47