ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
esphome::ble_device_base::ESPBLEiBeacon Class Reference

#include <ble_device.h>

Data Structures

struct  BeaconData
 

Public Member Functions

 ESPBLEiBeacon ()
 
 ESPBLEiBeacon (const uint8_t *data)
 
uint16_t get_major () const
 
uint16_t get_minor () const
 
int8_t get_signal_power () const
 
ESPBTUUID get_uuid () const
 

Static Public Member Functions

static optional< ESPBLEiBeaconfrom_manufacturer_data (const ServiceData &data, bool *prefix_rejected=nullptr)
 prefix_rejected: caller must initialise to false; set to true ONLY when a 23-byte Apple frame was refused for lacking the 0x02/0x15 iBeacon prefix — the case the legacy esp32 parser accepted.
 

Protected Attributes

struct PACKED esphome::ble_device_base::ESPBLEiBeacon::BeaconData beacon_data_
 

Detailed Description

Definition at line 129 of file ble_device.h.

Constructor & Destructor Documentation

◆ ESPBLEiBeacon() [1/2]

esphome::ble_device_base::ESPBLEiBeacon::ESPBLEiBeacon ( )
inline

Definition at line 131 of file ble_device.h.

◆ ESPBLEiBeacon() [2/2]

esphome::ble_device_base::ESPBLEiBeacon::ESPBLEiBeacon ( const uint8_t * data)
explicit

Definition at line 267 of file ble_device.cpp.

Member Function Documentation

◆ from_manufacturer_data()

optional< ESPBLEiBeacon > esphome::ble_device_base::ESPBLEiBeacon::from_manufacturer_data ( const ServiceData & data,
bool * prefix_rejected = nullptr )
static

prefix_rejected: caller must initialise to false; set to true ONLY when a 23-byte Apple frame was refused for lacking the 0x02/0x15 iBeacon prefix — the case the legacy esp32 parser accepted.

Never written on accept or on the non-Apple/wrong-size rejects. The caller with the device address does the logging (see ESPBTDevice::get_ibeacon()).

Definition at line 269 of file ble_device.cpp.

◆ get_major()

uint16_t esphome::ble_device_base::ESPBLEiBeacon::get_major ( ) const
inline

Definition at line 140 of file ble_device.h.

◆ get_minor()

uint16_t esphome::ble_device_base::ESPBLEiBeacon::get_minor ( ) const
inline

Definition at line 141 of file ble_device.h.

◆ get_signal_power()

int8_t esphome::ble_device_base::ESPBLEiBeacon::get_signal_power ( ) const
inline

Definition at line 142 of file ble_device.h.

◆ get_uuid()

ESPBTUUID esphome::ble_device_base::ESPBLEiBeacon::get_uuid ( ) const
inline

Definition at line 143 of file ble_device.h.

Field Documentation

◆ beacon_data_

struct PACKED esphome::ble_device_base::ESPBLEiBeacon::BeaconData esphome::ble_device_base::ESPBLEiBeacon::beacon_data_
protected

The documentation for this class was generated from the following files: