mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
changed json var names to more visible
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "Global.h"
|
||||
|
||||
void saveConfig() {
|
||||
writeFile("config.json", configSetup);
|
||||
writeFile("config.json", configSetupJson);
|
||||
}
|
||||
|
||||
//--------------------Посчитать -----------------------------------------------------------------------------------
|
||||
@@ -49,7 +49,7 @@ void safeDataToFile(String data, String Folder) {
|
||||
fileName = Folder + "/" + fileName + ".txt";
|
||||
// addFile(fileName, GetTime() + "/" + data);
|
||||
Serial.println(fileName);
|
||||
jsonWriteStr(configJson, "test", fileName);
|
||||
jsonWriteStr(configLiveJson, "test", fileName);
|
||||
}
|
||||
|
||||
// ------------- Чтение файла в строку -------------------------------------------------------------------------------
|
||||
@@ -113,7 +113,7 @@ String readFileString(const String& filename, const String& str_to_found) {
|
||||
|
||||
void sendCONFIG(String topik, String widgetConfig, String key, String date) {
|
||||
yield();
|
||||
topik = jsonReadStr(configSetup, "mqttPrefix") + "/" + chipID + "/" + topik + "/status";
|
||||
topik = jsonReadStr(configSetupJson, "mqttPrefix") + "/" + chipID + "/" + topik + "/status";
|
||||
String outer = "{\"widgetConfig\":";
|
||||
String inner = "{\"";
|
||||
inner = inner + key;
|
||||
|
||||
Reference in New Issue
Block a user