Add mDNS Service TXT for ESP3D version

This commit is contained in:
Luc 2020-12-14 10:53:36 +01:00
parent 5912a57382
commit 9b1ec9452d
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
#define _VERSION_ESP3D_H
//version and sources location
#define FW_VERSION "3.0.0.a74"
#define FW_VERSION "3.0.0.a75"
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
#endif //_VERSION_ESP3D_H

View File

@ -261,8 +261,8 @@ bool NetServices::begin()
if (!MDNS.addService("http", "tcp", HTTP_Server::port())) {
log_esp3d("failed");
}
// TODO add TXT records
//MDNS.addServiceTxt("http", "tcp", Key, value);
//Add TXT records
MDNS.addServiceTxt("http", "tcp", "ESP3D", FW_VERSION);
}
#endif //MDNS_FEATURE
#ifdef SSDP_FEATURE