ESPHome  2024.10.2
Data Structures | Typedefs | Functions
esphome::network Namespace Reference

Data Structures

struct  IPAddress
 

Typedefs

using IPAddresses = std::array< IPAddress, 5 >
 

Functions

bool is_connected ()
 Return whether the node is connected to the network (through wifi, eth, ...) More...
 
bool is_disabled ()
 Return whether the network is disabled (only wifi for now) More...
 
network::IPAddresses get_ip_addresses ()
 
std::string get_use_address ()
 Get the active network hostname. More...
 

Typedef Documentation

◆ IPAddresses

using esphome::network::IPAddresses = typedef std::array<IPAddress, 5>

Definition at line 141 of file ip_address.h.

Function Documentation

◆ get_ip_addresses()

IPAddresses esphome::network::get_ip_addresses ( )

Definition at line 40 of file util.cpp.

◆ get_use_address()

std::string esphome::network::get_use_address ( )

Get the active network hostname.

Definition at line 52 of file util.cpp.

◆ is_connected()

bool esphome::network::is_connected ( )

Return whether the node is connected to the network (through wifi, eth, ...)

Definition at line 15 of file util.cpp.

◆ is_disabled()

bool esphome::network::is_disabled ( )

Return whether the network is disabled (only wifi for now)

Definition at line 32 of file util.cpp.