13#include "esphome/components/modem/modem_component.h"
35 if (modem::global_modem_component !=
nullptr)
36 return modem::global_modem_component->is_connected();
58static constexpr size_t USE_ADDRESS_BUFFER_SIZE = 70;
bool is_connected() const
bool is_connected() const
EthernetComponent * global_eth_component
std::array< IPAddress, 5 > IPAddresses
ESPHOME_ALWAYS_INLINE bool is_connected()
Return whether the node is connected to the network (through wifi, eth, ...)
const char * get_use_address_to(std::span< char, USE_ADDRESS_BUFFER_SIZE > buf)
Get the active network address for logging.
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