ESPHome  2024.4.1
radon_eye_listener.cpp
Go to the documentation of this file.
1 #include "radon_eye_listener.h"
2 #include "esphome/core/log.h"
3 
4 #ifdef USE_ESP32
5 
6 namespace esphome {
7 namespace radon_eye_ble {
8 
9 static const char *const TAG = "radon_eye_ble";
10 
12  if (not device.get_name().empty()) {
13  if (device.get_name().rfind("FR:R", 0) == 0) {
14  // This is an RD200, I think
15  ESP_LOGD(TAG, "Found Radon Eye RD200 device Name: %s (MAC: %s)", device.get_name().c_str(),
16  device.address_str().c_str());
17  }
18  }
19  return false;
20 }
21 
22 } // namespace radon_eye_ble
23 } // namespace esphome
24 
25 #endif
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
const std::string & get_name() const