mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
11 lines
472 B
C++
11 lines
472 B
C++
|
|
#include "DeviceList.h"
|
||
|
|
|
||
|
|
void addThisDeviceToList() {
|
||
|
|
jsonWriteStr_(devListJson, "devicelist", "devicelist");
|
||
|
|
jsonWriteStr_(devListJson, "ip", jsonReadStr(settingsFlashJson, "ip"));
|
||
|
|
jsonWriteStr_(devListJson, "id", jsonReadStr(settingsFlashJson, "id"));
|
||
|
|
jsonWriteStr_(devListJson, "name", jsonReadStr(settingsFlashJson, "name"));
|
||
|
|
jsonWriteBool_(devListJson, "status", true);
|
||
|
|
devListJson = "[" + devListJson + "]";
|
||
|
|
Serial.println(devListJson);
|
||
|
|
}
|