ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
util.h
Go to the documentation of this file.
1#pragma once
3#ifdef USE_NETWORK
4#include <string>
5#include "ip_address.h"
6
7namespace esphome::network {
8
10bool is_connected();
12bool is_disabled();
14const char *get_use_address();
16
17} // namespace esphome::network
18#endif
std::array< IPAddress, 5 > IPAddresses
Definition ip_address.h:187
const char * get_use_address()
Get the active network hostname.
Definition util.cpp:87
bool is_connected()
Return whether the node is connected to the network (through wifi, eth, ...)
Definition util.cpp:25
network::IPAddresses get_ip_addresses()
Definition util.cpp:65
bool is_disabled()
Return whether the network is disabled (only wifi for now)
Definition util.cpp:52