ESPHome  2023.5.5
util.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include "ip_address.h"
5 
6 namespace esphome {
7 namespace network {
8 
10 bool is_connected();
12 std::string get_use_address();
13 IPAddress get_ip_address();
14 
15 } // namespace network
16 } // namespace esphome
std::string get_use_address()
Get the active network hostname.
Definition: util.cpp:44
bool is_connected()
Return whether the node is connected to the network (through wifi, eth, ...)
Definition: util.cpp:15
Definition: a4988.cpp:4
network::IPAddress get_ip_address()
Definition: util.cpp:32