From b5d054fbf747ab3c0845fba72684e85899832ffc Mon Sep 17 00:00:00 2001 From: gemi254 Date: Wed, 24 Jul 2024 15:41:36 +0300 Subject: [PATCH] Updated v1.1.4 --- src/ControlAssist.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ControlAssist.cpp b/src/ControlAssist.cpp index e037147..dd978a7 100644 --- a/src/ControlAssist.cpp +++ b/src/ControlAssist.cpp @@ -270,6 +270,12 @@ int ControlAssist::bind(const char* key, const char* val, WebSocketServerEvent e return getKeyNdx(key); } +bool ControlAssist::sendSystemMsg(const String &msg){ + String m = String("0\t") + msg; + return _socket->broadcastTXT(m); +} + + // Add a global callback function to handle changes void ControlAssist::setGlobalCallback(WebSocketServerEventG ev){ _ev = ev; @@ -406,7 +412,7 @@ bool ControlAssist::getFileChunk(const char *fname, String &res){ return false; }else{ // Open the file #if defined(ESP32) - File f = STORAGE.open(fname); + f = STORAGE.open(fname); #else f = STORAGE.open(String(fname), "r"); #endif