15 bool disabled =
false;
17 if (modem::global_modem_component !=
nullptr) {
47 const char *addr =
nullptr;
48#if defined(USE_NETWORK_PRIMARY_INTERFACE_WIFI) && defined(USE_WIFI)
50#elif defined(USE_ETHERNET)
52#elif defined(USE_MODEM)
53 addr = modem::global_modem_component->get_use_address();
54#elif defined(USE_WIFI)
56#elif defined(USE_OPENTHREAD)
59 if (addr !=
nullptr && addr[0] !=
'\0')
72#if defined(USE_NETWORK_PRIMARY_INTERFACE_WIFI) && defined(USE_WIFI)
75 for (
const auto &ip : ips) {
88 if (modem::global_modem_component !=
nullptr)
89 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: every configured interface with a disable() lifecycle (modem,...
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.