mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
@@ -21,15 +21,9 @@ void wsSendSetup() {
|
|||||||
do {
|
do {
|
||||||
deserializeJson(doc, file);
|
deserializeJson(doc, file);
|
||||||
|
|
||||||
// wsPublishData(F("config"), doc.as<String>());
|
ws.textAll("[config]" + doc.as<char>());
|
||||||
// if (ws.enabled()) {
|
|
||||||
ws.textAll("[config]" + doc.as<String>());
|
|
||||||
//}
|
|
||||||
|
|
||||||
// if (ws.enabled()) Serial.println("on");
|
|
||||||
|
|
||||||
Serial.println(doc.as<String>());
|
Serial.println(doc.as<String>());
|
||||||
|
|
||||||
} while (file.findUntil(",", "]"));
|
} while (file.findUntil(",", "]"));
|
||||||
SerialPrint("I", F("WS"), F("completed send config"));
|
SerialPrint("I", F("WS"), F("completed send config"));
|
||||||
}
|
}
|
||||||
@@ -38,3 +32,8 @@ void wsPublishData(String topic, String data) {
|
|||||||
data = "[" + topic + "]" + data;
|
data = "[" + topic + "]" + data;
|
||||||
ws.textAll(data);
|
ws.textAll(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// wsPublishData(F("config"), doc.as<String>());
|
||||||
|
// if (ws.enabled()) {
|
||||||
|
//}
|
||||||
|
// if (ws.enabled()) Serial.println("on");
|
||||||
|
|||||||
Reference in New Issue
Block a user