mDNS
This commit is contained in:
parent
a0f5ec26d2
commit
89dcbf27ae
@ -9,6 +9,7 @@ extern "C" {
|
|||||||
#include "user_interface.h"
|
#include "user_interface.h"
|
||||||
}
|
}
|
||||||
// OTA & WEB
|
// OTA & WEB
|
||||||
|
#include <ESP8266mDNS.h>
|
||||||
#include "httpserver.h"
|
#include "httpserver.h"
|
||||||
#include "ota.h"
|
#include "ota.h"
|
||||||
#include "wifi_credentials.h"
|
#include "wifi_credentials.h"
|
||||||
@ -106,6 +107,10 @@ void setup() {
|
|||||||
httpServer.start_apps();
|
httpServer.start_apps();
|
||||||
Serial.println("HTTP server started !");
|
Serial.println("HTTP server started !");
|
||||||
|
|
||||||
|
if (MDNS.begin("treppenlicht")) {
|
||||||
|
Serial.println("MDNS for treppenlicht started");
|
||||||
|
}
|
||||||
|
|
||||||
os_timer_setfn(&timer1, timerCallback, &timer_flag);
|
os_timer_setfn(&timer1, timerCallback, &timer_flag);
|
||||||
os_timer_arm(&timer1, 20, true);
|
os_timer_arm(&timer1, 20, true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user