добавил отправку прием сетевых событий

This commit is contained in:
Dmitry Borisenko
2022-02-28 01:10:14 +01:00
parent c50e0606e4
commit 28add9cb25
14 changed files with 121 additions and 118 deletions

View File

@@ -31,16 +31,16 @@ void spaceCmdExecute(String& cmdStr) {
}
}
String getValueJson(String& key) {
String live = jsonReadStr(paramsHeapJson, key);
String store = jsonReadStr(paramsFlashJson, key);
if (live != nullptr) {
return live;
} else if (store != nullptr) {
return store;
} else if (store == nullptr && live == nullptr) {
return "no value";
} else {
return "data error";
}
}
// String getValueJson(String& key) {
// String live = jsonReadStr(paramsHeapJson, key);
// String store = jsonReadStr(paramsFlashJson, key);
// if (live != nullptr) {
// return live;
// } else if (store != nullptr) {
// return store;
// } else if (store == nullptr && live == nullptr) {
// return "no value";
// } else {
// return "data error";
// }
// }