Skip to content

Commit

Permalink
Updated v1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gemi254 committed Jul 24, 2024
1 parent c145c82 commit b5d054f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ControlAssist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b5d054f

Please sign in to comment.