17#include "esphome/components/modem/modem_component.h"
33 if (modem::global_modem_component !=
nullptr)
34 return modem::global_modem_component->is_connected();
55 if (modem::global_modem_component !=
nullptr)
56 return modem::global_modem_component->is_disabled();
73 if (modem::global_modem_component !=
nullptr)
74 return modem::global_modem_component->get_ip_addresses();
95 if (modem::global_modem_component !=
nullptr)
96 return modem::global_modem_component->get_use_address();
network::IPAddresses get_ip_addresses()
std::string get_use_address() const
network::IPAddresses get_ip_addresses()
std::string get_use_address() const
network::IPAddresses get_ip_addresses()
EthernetComponent * global_eth_component
std::array< IPAddress, 5 > IPAddresses
std::string 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
Providing packet encoding functions for exchanging data with a remote host.