Browse Source

mDNS

singleLED
Simon Schmidt 3 years ago
parent
commit
609fc9181d
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/main.cpp

+ 6
- 0
src/main.cpp View File

#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"
httpServer.start_apps(); httpServer.start_apps();
Serial.println("HTTP server started !"); Serial.println("HTTP server started !");


if (MDNS.begin("singleLED")) {
Serial.println("MDNS for singleLED 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);


" PW: " + String(wifi_data.PW)); " PW: " + String(wifi_data.PW));
} }



void loop() { void loop() {
if (inter != 0u) { if (inter != 0u) {
Serial.printf("interrupt\n"); Serial.printf("interrupt\n");

Loading…
Cancel
Save