ESPHome 2026.9.1
Loading...
Searching...
No Matches
esphome::wifi::WiFiConnectStateListener Class Referenceabstract

Listener interface for WiFi connection state changes. More...

#include <wifi_component.h>

Inheritance diagram for esphome::wifi::WiFiConnectStateListener:
esphome::wifi_info::BSSIDWiFiInfo esphome::wifi_info::SSIDWiFiInfo

Public Member Functions

virtual void on_wifi_connect_state (StringRef ssid, std::span< const uint8_t, 6 > bssid)=0
 

Detailed Description

Listener interface for WiFi connection state changes.

Components can implement this interface to receive connection updates without the overhead of std::function callbacks.

Note
Components must call wifi.request_wifi_connect_state_listener() in their Python to_code() to register for this listener type.

Definition at line 414 of file wifi_component.h.

Member Function Documentation

◆ on_wifi_connect_state()

virtual void esphome::wifi::WiFiConnectStateListener::on_wifi_connect_state ( StringRef ssid,
std::span< const uint8_t, 6 > bssid )
pure virtual

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