3#if defined(USE_NETWORK) && defined(USE_ESP32)
6#ifdef USE_NETWORK_DEFAULT_ROUTE
15#ifdef USE_NETWORK_DEFAULT_ROUTE
24#ifdef NETWORK_ACTIVE_INTERFACE_LISTENER_COUNT
35 void setup()
override;
40#ifdef USE_NETWORK_DEFAULT_ROUTE
45#ifdef NETWORK_ACTIVE_INTERFACE_LISTENER_COUNT
58#ifdef NETWORK_ACTIVE_INTERFACE_LISTENER_COUNT
Minimal static vector - saves memory by avoiding std::vector overhead.
Notified from the main loop when the interface holding the default route changes.
virtual void on_active_interface(NetworkInterface interface)=0
StaticVector< ActiveInterfaceListener *, NETWORK_ACTIVE_INTERFACE_LISTENER_COUNT > active_interface_listeners_
float get_setup_priority() const override
esp_netif_t * default_netif_
void add_active_interface_listener(ActiveInterfaceListener *listener)
uint32_t last_route_check_
NetworkInterface active_interface_
void dump_config() override
static constexpr uint32_t ROUTE_CHECK_INTERVAL_MS
NetworkInterface get_active_interface() const
The first connected interface in network: priority order; NONE while none is connected.
NetworkInterface
The interface holding the default route.
@ NETWORK_INTERFACE_ETHERNET
constexpr float AFTER_BLUETOOTH
struct esp_netif_obj esp_netif_t