ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
esphome::ble_device_base::ScannerStateCallback Struct Reference

Subscriber slot for scanner-state transitions; same shape as RawAdvertisementCallback, delivered on the ESPHome main loop. More...

#include <ble_hub.h>

Public Member Functions

bool is_set () const
 
void invoke (ScannerState state) const
 

Data Fields

void * instance {nullptr}
 
void(* fn )(void *instance, ScannerState state)
 

Detailed Description

Subscriber slot for scanner-state transitions; same shape as RawAdvertisementCallback, delivered on the ESPHome main loop.

Only hubs that push provide the setter; consumers of the rest poll scan_running().

Definition at line 65 of file ble_hub.h.

Member Function Documentation

◆ invoke()

void esphome::ble_device_base::ScannerStateCallback::invoke ( ScannerState state) const
inline

Definition at line 69 of file ble_hub.h.

◆ is_set()

bool esphome::ble_device_base::ScannerStateCallback::is_set ( ) const
inline

Definition at line 68 of file ble_hub.h.

Field Documentation

◆ fn

void(* esphome::ble_device_base::ScannerStateCallback::fn) (void *instance, ScannerState state)
inline

Definition at line 67 of file ble_hub.h.

◆ instance

void* esphome::ble_device_base::ScannerStateCallback::instance {nullptr}

Definition at line 66 of file ble_hub.h.


The documentation for this struct was generated from the following file: