ESPHome 2026.11.0b6
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 SUB_SENSOR(radon)
18 SUB_SENSOR(radon_long_term)
19
20 public:
22
23 void dump_config() override;
24 void update() override;
25
26 void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
27 esp_ble_gattc_cb_param_t *param) override;
28
29 protected:
30 void read_sensors_(uint8_t *value, uint16_t value_len);
31
33 uint16_t read_handle_;
34 uint16_t write_handle_;
38};
39
40} // namespace esphome::radon_eye_rd200
41
42#endif // USE_ESP32
This class simplifies creating components that periodically check a state.
Definition component.h:532
void read_sensors_(uint8_t *value, uint16_t value_len)
esp32_ble_tracker::ESPBTUUID sensors_write_characteristic_uuid_
esp32_ble_tracker::ESPBTUUID service_uuid_
esp32_ble_tracker::ESPBTUUID sensors_read_characteristic_uuid_
uint32_t value
Definition hal.cpp:41