убрал русские символы

This commit is contained in:
Dmitry Borisenko
2022-01-10 16:49:01 +01:00
parent a353e65ed9
commit b2ad5102d1
4 changed files with 3 additions and 3 deletions

27
src/classes/sendJson.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include "classes/sendJson.h"
SendJson::SendJson() {}
SendJson::~SendJson() {}
void SendJson::sendFile(String path, uint8_t num) {
_path = path;
_num = num;
file = seekFile(path);
}
void SendJson::loop() {
if (file.available()) {
String jsonArrayElement = _path + file.readStringUntil('}') + "}";
sendWs(jsonArrayElement);
}
}
void SendJson::sendWs(String& jsonArrayElement) {
standWebSocket.sendTXT(_num, jsonArrayElement);
}
void SendJson::sendMqtt(String& jsonArrayElement) {
// mqtt send to do
}
SendJson* mySendJson;