websocket & function

This commit is contained in:
avaksru
2021-12-13 16:26:43 +03:00
parent e46a6247f9
commit d083fbf9cf
28 changed files with 602 additions and 103 deletions

View File

@@ -35,11 +35,12 @@
#include "items/vSensorUltrasonic.h"
#include "items/vSensorUptime.h"
//#include "WebServer.h"
void not_async_actions();
Timings metric;
boolean initialized = false;
extern int flagq ;
void setup() {
Serial.begin(115200);
Serial.flush();
@@ -94,8 +95,14 @@ void loop() {
#ifdef OTA_UPDATES_ENABLED
ArduinoOTA.handle();
#endif
#ifdef WS_enable
ws.cleanupClients();
#ifdef WEBSOCKET_ENABLED
ws.cleanupClients();
if ( flagq == 1){
SerialPrint("I", "WS ", "choose_log_date_and_send()");
choose_log_date_and_sendWS();
flagq = 0;
}
#endif
timeNow->loop();
mqttLoop();