14 if (modem::global_modem_component !=
nullptr)
15 return modem::global_modem_component->is_disabled();
30 const char *addr =
nullptr;
31#if defined(USE_NETWORK_PRIMARY_INTERFACE_WIFI) && defined(USE_WIFI)
33#elif defined(USE_ETHERNET)
35#elif defined(USE_MODEM)
36 addr = modem::global_modem_component->get_use_address();
37#elif defined(USE_WIFI)
39#elif defined(USE_OPENTHREAD)
42 if (addr !=
nullptr && addr[0] !=
'\0')
55#if defined(USE_NETWORK_PRIMARY_INTERFACE_WIFI) && defined(USE_WIFI)
58 for (
const auto &ip : ips) {
71 if (modem::global_modem_component !=
nullptr)
72 return modem::global_modem_component->get_ip_addresses();
const StringRef & get_name() const
Get the name of this Application set by pre_setup().
network::IPAddresses get_ip_addresses()
const char * get_use_address() const
Returns nullptr when no explicit use_address is configured and the address is derived at runtime from...
network::IPAddresses get_ip_addresses()
const char * get_use_address() const
Returns nullptr when no explicit use_address is configured and the address is derived at runtime from...
network::IPAddresses get_ip_addresses()
const char * get_use_address() const
Returns nullptr when no explicit use_address is configured and the address is derived at runtime from...
EthernetComponent * global_eth_component
std::array< IPAddress, 5 > IPAddresses
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
size_t make_name_with_suffix_to(char *buffer, size_t buffer_size, const char *name, size_t name_len, char sep, const char *suffix_ptr, size_t suffix_len)
Zero-allocation version: format name + separator + suffix directly into buffer.
Application App
Global storage of Application pointer - only one Application can exist.