mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
обмен данными меджу флешь esp и веб страничкой
This commit is contained in:
@@ -214,6 +214,11 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
||||
if (myStreamJsonArray) myStreamJsonArray->sendFile("/config.json", num);
|
||||
}
|
||||
|
||||
if (payloadStr.startsWith("/changed")) {
|
||||
payloadStr.replace("/changed", "");
|
||||
writeFile(F("config.json"), payloadStr);
|
||||
}
|
||||
|
||||
// send message to client
|
||||
// standWebSocket.sendTXT(num, "message here");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user