ESPHome  2024.11.0
util.h
Go to the documentation of this file.
1 #pragma once
2 #include "esphome/core/defines.h"
3 #ifdef USE_NETWORK
4 #include <string>
5 #include "ip_address.h"
6 
7 namespace esphome {
8 namespace network {
9 
11 bool is_connected();
13 bool is_disabled();
15 std::string get_use_address();
17 
18 } // namespace network
19 } // namespace esphome
20 #endif
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
std::array< IPAddress, 5 > IPAddresses
Definition: ip_address.h:141
bool is_disabled()
Return whether the network is disabled (only wifi for now)
Definition: util.cpp:32
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7