mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-14 14:45:57 +08:00
Add mDNS Service TXT for ESP3D version
This commit is contained in:
parent
5912a57382
commit
9b1ec9452d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user