New method of sending date - direct from SPIFFS to MQTT!!!!

This commit is contained in:
Dmitry Borisenko
2020-03-28 00:29:50 +01:00
parent 7d1c0268f5
commit abfc847793
10 changed files with 76 additions and 37 deletions

View File

@@ -35,18 +35,21 @@ void setup() {
SSDP_init();
Serial.println("[V] SSDP_init");
//--------------------------------------------------------------
ts.add(TEST, 3000, [&](void*) {
String json = "{}";
jsonWriteStr(json, "test", GetTime());
ws.textAll(json);
getMemoryLoad("[i] After loading");
ts.add(TEST, 10000, [&](void*) {
//String json = "{}";
//jsonWriteStr(json, "test", GetTime());
//ws.textAll(json);
//getMemoryLoad("[i] After loading");
//Serial.print(GetDataDigital());
//Serial.print(" ");
//Serial.println(GetTime());
}, nullptr, true);
}, nullptr, false);
just_load = false;
}