Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
609fc9181d | ||
![]() |
59d99f9926 |
@ -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"
|
||||||
@ -22,7 +23,7 @@ extern "C" {
|
|||||||
#include "treppe.h"
|
#include "treppe.h"
|
||||||
os_timer_t timer1;
|
os_timer_t timer1;
|
||||||
uint8_t timer_flag = 0;
|
uint8_t timer_flag = 0;
|
||||||
Treppe stairs(12);
|
Treppe stairs(16);
|
||||||
|
|
||||||
// WIFI
|
// WIFI
|
||||||
const char *ssid = STASSID;
|
const char *ssid = STASSID;
|
||||||
@ -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("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);
|
||||||
|
|
||||||
@ -113,6 +118,7 @@ void setup() {
|
|||||||
" 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…
x
Reference in New Issue
Block a user