mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 18:20:53 +00:00
expose mac address via discovery (#1038)
This commit is contained in:
parent
021055f0b8
commit
39fbf9c56f
@ -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
|
// 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", "version", ESPHOME_VERSION);
|
||||||
MDNS.addServiceTxt("esphomelib", "tcp", "address", network_get_address().c_str());
|
MDNS.addServiceTxt("esphomelib", "tcp", "address", network_get_address().c_str());
|
||||||
|
MDNS.addServiceTxt("esphomelib", "tcp", "mac", get_mac_address().c_str());
|
||||||
} else {
|
} else {
|
||||||
#endif
|
#endif
|
||||||
// Publish "http" service if not using native API.
|
// Publish "http" service if not using native API.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user