ESPHome 2026.3.3
Loading...
Searching...
No Matches
esphome::wifi::WiFiPowerSaveListener Class Referenceabstract

Listener interface for WiFi power save mode changes. More...

#include <wifi_component.h>

Inheritance diagram for esphome::wifi::WiFiPowerSaveListener:
esphome::wifi_info::PowerSaveModeWiFiInfo

Public Member Functions

virtual void on_wifi_power_save (WiFiPowerSaveMode mode)=0
 

Detailed Description

Listener interface for WiFi power save mode changes.

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

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

Definition at line 396 of file wifi_component.h.

Member Function Documentation

◆ on_wifi_power_save()

virtual void esphome::wifi::WiFiPowerSaveListener::on_wifi_power_save ( WiFiPowerSaveMode mode)
pure virtual

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