esphome/esphome/components/network/util.h
Jimmy Hedman f73518dbeb
Improve dualstack and IPv6 support (#5449)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-02-27 21:16:20 +13:00

19 lines
431 B
C++

#pragma once
#include <string>
#include "ip_address.h"
namespace esphome {
namespace network {
/// Return whether the node is connected to the network (through wifi, eth, ...)
bool is_connected();
/// Return whether the network is disabled (only wifi for now)
bool is_disabled();
/// Get the active network hostname
std::string get_use_address();
IPAddresses get_ip_addresses();
} // namespace network
} // namespace esphome