ESPHome 2026.2.1
Loading...
Searching...
No Matches
esphome::network Namespace Reference

Data Structures

struct  IPAddress
 

Typedefs

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

Functions

void lowercase_ip_str (char *buf)
 Lowercase hex digits in IP address string (A-F -> a-f for IPv6 per RFC 5952)
 
bool is_connected ()
 Return whether the node is connected to the network (through wifi, eth, ...)
 
bool is_disabled ()
 Return whether the network is disabled (only wifi for now)
 
network::IPAddresses get_ip_addresses ()
 
const char * get_use_address ()
 Get the active network hostname.
 

Typedef Documentation

◆ IPAddresses

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

Definition at line 184 of file ip_address.h.

Function Documentation

◆ get_ip_addresses()

IPAddresses esphome::network::get_ip_addresses ( )

Definition at line 66 of file util.cpp.

◆ get_use_address()

const char * esphome::network::get_use_address ( )

Get the active network hostname.

Definition at line 88 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 26 of file util.cpp.

◆ is_disabled()

bool esphome::network::is_disabled ( )

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

Definition at line 53 of file util.cpp.

◆ lowercase_ip_str()

void esphome::network::lowercase_ip_str ( char * buf)
inline

Lowercase hex digits in IP address string (A-F -> a-f for IPv6 per RFC 5952)

Definition at line 47 of file ip_address.h.