Code: Select all
if (g_mDNS.begin("LEDWifi"))
{
Serial.println("mDNS registered");
g_mDNS.addService("nightdriver", "tcp", 81);
}
else
Serial.println("ERROR: mDNS failed to register");
if (0 == g_mDNS.queryService("nightdriver", "tcp"))
Serial.println("WARNING: Did not find _nightdriver._tcp service");