ESPHome 2026.9.1
Loading...
Searching...
No Matches
esphome::ethernet::EthernetIPStateListener Class Referenceabstract

Listener interface for Ethernet IP state changes. More...

#include <ethernet_component.h>

Inheritance diagram for esphome::ethernet::EthernetIPStateListener:
esphome::ethernet_info::DNSAddressEthernetInfo esphome::ethernet_info::IPAddressEthernetInfo esphome::mdns::MDNSComponent

Public Member Functions

virtual void on_ip_state (const network::IPAddresses &ips, const network::IPAddress &dns1, const network::IPAddress &dns2)=0
 

Detailed Description

Listener interface for Ethernet IP state changes.

Components can implement this interface to receive IP address updates without the overhead of std::function callbacks or polling.

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

Definition at line 68 of file ethernet_component.h.

Member Function Documentation

◆ on_ip_state()

virtual void esphome::ethernet::EthernetIPStateListener::on_ip_state ( const network::IPAddresses & ips,
const network::IPAddress & dns1,
const network::IPAddress & dns2 )
pure virtual

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