71 if (this->
uuid_ == uuid) {
79 if (!maybe_ibeacon.has_value()) {
83 auto ibeacon = *maybe_ibeacon;
void publish_state(bool new_state)
Publish a new state to the front-end.
bool state
The current state of this binary sensor. Also used as the backing storage for StatefulEntityBase.
const std::vector< ESPBTUUID > & get_service_uuids() const
optional< ESPBLEiBeacon > get_ibeacon() const
uint64_t address_uint64() const
Return MAC as packed uint64 (byte 0 in LSB — matches esp32's address_uint64).
bool resolve_irk(const uint8_t *irk) const
Resolve a Resolvable Private Address against a 16-byte IRK (Bluetooth "ah" function,...
static ESPBTUUID from_uint16(uint16_t uuid)
static ESPBTUUID from_raw(const uint8_t *data)
Construct from raw 16-byte little-endian UUID.
esp_bt_uuid_t get_uuid() const
static ESPBTUUID from_uint32(uint32_t uuid)
void set_service_uuid16(uint16_t uuid)
void set_ibeacon_minor(uint16_t minor)
void set_ibeacon_uuid(uint8_t *uuid)
bool check_ibeacon_major_
void set_ibeacon_major(uint16_t major)
void set_irk(uint8_t *irk)
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
void set_minimum_rssi(int rssi)
esp32_ble_tracker::ESPBTUUID ibeacon_uuid_
esp32_ble_tracker::ESPBTUUID uuid_
void set_found_(bool state)
void set_service_uuid128(uint8_t *uuid)
bool check_ibeacon_minor_
void set_address(uint64_t address)
void dump_config() override
void set_timeout(uint32_t timeout)
void set_service_uuid32(uint32_t uuid)
uint32_t IRAM_ATTR HOT millis()