Skip to content

Commit 64b6059

Browse files
committed
Adding custom mDNS service type for easy disscovery of OpenEVSE devices on the local network.
1 parent 399c42b commit 64b6059

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/net_manager.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,13 @@ net_setup()
408408
ETH.begin();
409409
#endif
410410

411-
if (MDNS.begin(esp_hostname.c_str())) {
411+
if (MDNS.begin(esp_hostname.c_str()))
412+
{
412413
MDNS.addService("http", "tcp", 80);
414+
MDNS.addService("openevse", "tcp", 80);
415+
MDNS.addServiceTxt("openevse", "tcp", "type", buildenv.c_str());
416+
MDNS.addServiceTxt("openevse", "tcp", "version", currentfirmware.c_str());
417+
MDNS.addServiceTxt("openevse", "tcp", "id", ESPAL.getLongId());
413418
}
414419
}
415420

0 commit comments

Comments
 (0)