ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
radon_eye_listener.cpp
Go to the documentation of this file.
3#include "esphome/core/log.h"
4
5#ifdef USE_ESP32
6
8
9static const char *const TAG = "radon_eye_ble";
10
12 // Radon Eye devices have names starting with "FR:"
13 if (device.get_name().starts_with("FR:")) {
14 char addr_buf[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
15 ESP_LOGD(TAG, "Found Radon Eye device Name: %s (MAC: %s)", device.get_name().c_str(),
16 device.address_str_to(addr_buf));
17 }
18 return false;
19}
20
21} // namespace esphome::radon_eye_ble
22
23#endif
const char * address_str_to(std::span< char, MAC_ADDRESS_PRETTY_BUFFER_SIZE > buf) const
Format MAC address into provided buffer, returns pointer to buffer for convenience.
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override