This commit is contained in:
Dmitry Borisenko
2021-12-06 01:27:33 +01:00
parent f8307dcb5e
commit 1af7687064
5 changed files with 12 additions and 16 deletions

View File

@@ -4,9 +4,8 @@
#include "HttpServer.h"
void SerialPrint(String errorLevel, String module, String msg) {
Serial.println(prettyMillis(millis()) + " [" + errorLevel + "] [" + module + "] " + msg);
String tosend = "[" + errorLevel + "] [" + module + "] " + msg;
String tosend = prettyMillis(millis()) + " [" + errorLevel + "] [" + module + "] " + msg;
Serial.println(tosend);
ws.textAll(tosend);
}

View File

@@ -162,7 +162,6 @@ void onWsEvent(AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventTyp
}
}
#endif
;
}
void initMDNS() {
@@ -170,7 +169,6 @@ void initMDNS() {
MDNS.addService("http", "tcp", 80);
// TODO Add Adduino OTA
#endif
;
}
void initOta() {
@@ -201,7 +199,6 @@ void initOta() {
ArduinoOTA.setHostname(hostName);
ArduinoOTA.begin();
#endif
;
}
void initWS() {