10namespace ethernet_info {
20 for (
auto &ip : ips) {
47 std::string dns_results = dns_one.
str() +
" " + dns_two.str();
This class simplifies creating components that periodically check a state.
network::IPAddresses get_ip_addresses()
network::IPAddress get_dns_address(uint8_t num)
float get_setup_priority() const override
std::string last_results_
std::string unique_id() override
void dump_config() override
void dump_config() override
network::IPAddresses last_ips_
float get_setup_priority() const override
std::array< text_sensor::TextSensor *, 5 > ip_sensors_
void add_ip_sensors(uint8_t index, text_sensor::TextSensor *s)
std::string unique_id() override
float get_setup_priority() const override
std::string unique_id() override
void dump_config() override
void publish_state(const std::string &state)
EthernetComponent * global_eth_component
std::array< IPAddress, 5 > IPAddresses
Providing packet encoding functions for exchanging data with a remote host.
std::string get_mac_address()
Get the device MAC address as a string, in lowercase hex notation.