mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-16 15:35:53 +08:00
Add mDNS feature in main loop
Add mDNS feature in main loop
This commit is contained in:
parent
f2d80d6017
commit
d90932a7cb
@ -37,7 +37,10 @@
|
|||||||
#include <ESP8266WiFi.h>
|
#include <ESP8266WiFi.h>
|
||||||
#include <WiFiClient.h>
|
#include <WiFiClient.h>
|
||||||
#include <ESP8266WebServer.h>
|
#include <ESP8266WebServer.h>
|
||||||
|
#include <ESP8266mDNS.h>
|
||||||
|
extern "C" {
|
||||||
|
#include "user_interface.h"
|
||||||
|
}
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
// init :
|
// init :
|
||||||
@ -80,9 +83,12 @@ void setup() {
|
|||||||
|
|
||||||
//main loop
|
//main loop
|
||||||
void loop() {
|
void loop() {
|
||||||
|
// Check for any mDNS queries and send responses
|
||||||
|
wifi_config.mdns.update();
|
||||||
//web requests
|
//web requests
|
||||||
web_interface.WebServer.handleClient();
|
web_interface.WebServer.handleClient();
|
||||||
//TODO use a method to handle serial also in class and call it instead of this one
|
//TODO use a method to handle serial also in class and call it instead of this one
|
||||||
data_interface.WebServer.handleClient();
|
data_interface.WebServer.handleClient();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user