17#include "esphome/components/modem/modem_component.h"
32 if (modem::global_modem_component !=
nullptr)
33 return modem::global_modem_component->is_connected();
54 if (modem::global_modem_component !=
nullptr)
55 return modem::global_modem_component->is_disabled();
72 if (modem::global_modem_component !=
nullptr)
73 return modem::global_modem_component->get_ip_addresses();
94 return modem::global_modem_component->get_use_address();
105#if !defined(USE_ETHERNET) && !defined(USE_MODEM) && !defined(USE_WIFI) && !defined(USE_OPENTHREAD)
network::IPAddresses get_ip_addresses()
const char * get_use_address() const
network::IPAddresses get_ip_addresses()
const char * get_use_address() const
network::IPAddresses get_ip_addresses()
const char * get_use_address() const
bool is_connected() const
EthernetComponent * global_eth_component
std::array< IPAddress, 5 > IPAddresses
const char * get_use_address()
Get the active network hostname.
bool is_connected()
Return whether the node is connected to the network (through wifi, eth, ...)
network::IPAddresses get_ip_addresses()
bool is_disabled()
Return whether the network is disabled (only wifi for now)
OpenThreadComponent * global_openthread_component
WiFiComponent * global_wifi_component