Update mDNS with latest version and display IP

Use M117 if any error
This commit is contained in:
Luc
2015-07-25 01:53:53 +08:00
parent ea900a520b
commit 9e90ef38b8
4 changed files with 37 additions and 24 deletions

View File

@@ -90,15 +90,20 @@ void setup() {
web_interface->WebServer.begin();
data_server->begin();
data_server->setNoDelay(true);
#ifdef MDNS_FEATURE
// Check for any mDNS queries and send responses
if (wifi_get_opmode()==WIFI_STA )
{
wifi_config.mdns.addService("http", "tcp", wifi_config.iweb_port);
}
#endif
}
//main loop
void loop() {
#ifdef MDNS_FEATURE
// Check for any mDNS queries and send responses
wifi_config.Updatemdns();
#endif
//web requests
web_interface->WebServer.handleClient();
//TODO use a method to handle serial also in class and call it instead of this one