diff --git a/esp8266/esp8266.ino b/esp8266/esp8266.ino index e691bd33..e9b3913c 100644 --- a/esp8266/esp8266.ino +++ b/esp8266/esp8266.ino @@ -37,7 +37,10 @@ #include #include #include - +#include +extern "C" { +#include "user_interface.h" +} void setup() { // init : @@ -80,9 +83,12 @@ void setup() { //main loop void loop() { + // Check for any mDNS queries and send responses +wifi_config.mdns.update(); //web requests web_interface.WebServer.handleClient(); //TODO use a method to handle serial also in class and call it instead of this one data_interface.WebServer.handleClient(); + }