mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
добавил отправку прием сетевых событий
This commit is contained in:
@@ -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";
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user