mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 03:49:13 +03:00
New method of sending date - direct from SPIFFS to MQTT!!!!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user