ESPHome 2025.5.0
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 {
8namespace network {
9
11bool is_connected();
13bool is_disabled();
15std::string get_use_address();
17
18} // namespace network
19} // namespace esphome
20#endif
std::array< IPAddress, 5 > IPAddresses
Definition ip_address.h:143
std::string get_use_address()
Get the active network hostname.
Definition util.cpp:52
bool is_connected()
Return whether the node is connected to the network (through wifi, eth, ...)
Definition util.cpp:15
network::IPAddresses get_ip_addresses()
Definition util.cpp:40
bool is_disabled()
Return whether the network is disabled (only wifi for now)
Definition util.cpp:32
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7