1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-28 13:38:17 +00:00
2024-08-14 07:48:27 +12:00

21 lines
490 B
C++

#pragma once
#include "esphome/core/defines.h"
#ifdef USE_NETWORK
#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
#endif