10 namespace ethernet_info {
20 for (
auto &ip : ips) {
47 std::string dns_results = dns_one.
str() +
" " + dns_two.str();
49 if (dns_results != this->last_results_) {
50 this->last_results_ = dns_results;
network::IPAddresses last_ips_
std::string last_results_
float get_setup_priority() const override
void add_ip_sensors(uint8_t index, text_sensor::TextSensor *s)
network::IPAddress get_dns_address(uint8_t num)
This class simplifies creating components that periodically check a state.
void publish_state(const std::string &state)
std::string unique_id() override
EthernetComponent * global_eth_component
network::IPAddresses get_ip_addresses()
std::array< text_sensor::TextSensor *, 5 > ip_sensors_
std::string get_mac_address()
Get the device MAC address as a string, in lowercase hex notation.
std::array< IPAddress, 5 > IPAddresses
std::string unique_id() override
float get_setup_priority() const override
void dump_config() override
Implementation of SPI Controller mode.
esphome::sensor::Sensor * sensor
std::string unique_id() override