|
ESPHome 2026.8.0b4
|
Subscriber slot for the raw-advertisement stream (the bluetooth_proxy path). More...
#include <ble_hub.h>
Public Member Functions | |
| bool | is_set () const |
| A default-constructed slot is "no subscriber"; hubs must guard on this. | |
| void | invoke (const RawAdvertisement &adv) const |
Data Fields | |
| void * | instance {nullptr} |
| void(* | fn )(void *instance, const RawAdvertisement &adv) |
Subscriber slot for the raw-advertisement stream (the bluetooth_proxy path).
The hub delivers on the ESPHome main loop. Same shape as logger.h's LogCallback: an instance pointer plus a plain function pointer — no virtuals, no std::function.
Usage: hub->set_raw_advertisement_callback({this, [](void *self, const RawAdvertisement &adv) { static_cast<MyComponent *>(self)->on_raw_advertisement(adv); }});
|
inline |
|
inline |
|
inline |
| void* esphome::ble_device_base::RawAdvertisementCallback::instance {nullptr} |