9 namespace radon_eye_ble {
11 static const char *
const TAG =
"radon_eye_ble";
16 std::vector<std::string> prefixes = {
"FR:R",
"FR:I",
"FR:H"};
19 if (std::any_of(prefixes.begin(), prefixes.end(),
20 [&](
const std::string &prefix) {
return device.
get_name().rfind(prefix, 0) == 0; })) {
22 ESP_LOGD(TAG,
"Found Radon Eye device Name: %s (MAC: %s)", device.
get_name().c_str(),
std::string address_str() const
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
Implementation of SPI Controller mode.
const std::string & get_name() const