1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 00:05:43 +00:00

Add Ethernet MAC address to ethernet_info (#6835)

This commit is contained in:
Pieter Viljoen
2024-06-03 19:57:05 -07:00
committed by GitHub
parent 05491e756b
commit 78b48209aa
6 changed files with 63 additions and 16 deletions

View File

@@ -74,6 +74,10 @@ class EthernetComponent : public Component {
network::IPAddress get_dns_address(uint8_t num);
std::string get_use_address() const;
void set_use_address(const std::string &use_address);
void get_eth_mac_address_raw(uint8_t *mac);
std::string get_eth_mac_address_pretty();
eth_duplex_t get_duplex_mode();
eth_speed_t get_link_speed();
bool powerdown();
protected: