mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
expose mac address via discovery (#1038)
This commit is contained in:
parent
021055f0b8
commit
39fbf9c56f
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ void network_setup_mdns(IPAddress address, int interface) {
|
|||
// DNS-SD (!=mDNS !) requires at least one TXT record for service discovery - let's add version
|
||||
MDNS.addServiceTxt("esphomelib", "tcp", "version", ESPHOME_VERSION);
|
||||
MDNS.addServiceTxt("esphomelib", "tcp", "address", network_get_address().c_str());
|
||||
MDNS.addServiceTxt("esphomelib", "tcp", "mac", get_mac_address().c_str());
|
||||
} else {
|
||||
#endif
|
||||
// Publish "http" service if not using native API.
|
||||
|
|
Loading…
Reference in a new issue