|
@@ -165,6 +165,7 @@ namespace Global
|
|
|
g_tConfig.mode = cJSON_GetObjectItem(pJson, _T("Mode")) ? cJSON_GetObjectItem(pJson, _T("Mode"))->valueint : 0;
|
|
|
g_tConfig.warncount = cJSON_GetObjectItem(pJson, _T("WarnCount")) ? cJSON_GetObjectItem(pJson, _T("WarnCount"))->valueint : 200;
|
|
|
g_tConfig.waitboot = cJSON_GetObjectItem(pJson, _T("WaitBoot")) ? cJSON_GetObjectItem(pJson, _T("WaitBoot"))->valueint : 5000;
|
|
|
+ g_tConfig.bootread = cJSON_GetObjectItem(pJson, _T("BootRead")) ? cJSON_GetObjectItem(pJson, _T("BootRead"))->valueint : 0;
|
|
|
g_tConfig.serverurl = cJSON_GetObjectItem(pJson, _T("server-url")) ? cJSON_GetObjectItem(pJson, _T("server-url"))->valuestring : "";
|
|
|
g_tConfig.chassis = cJSON_GetObjectItem(pJson, _T("Chassis")) ? cJSON_GetObjectItem(pJson, _T("Chassis"))->valuestring : "";
|
|
|
|
|
@@ -341,6 +342,7 @@ namespace Global
|
|
|
cJSON_AddNumberToObject(pJson, "Mode", g_tConfig.mode);
|
|
|
cJSON_AddNumberToObject(pJson, "WarnCount", g_tConfig.warncount);
|
|
|
cJSON_AddNumberToObject(pJson, "WaitBoot", g_tConfig.waitboot);
|
|
|
+ cJSON_AddBoolToObject(pJson, "BootRead", g_tConfig.bootread);
|
|
|
cJSON_AddStringToObject(pJson, "Baudrate", g_tConfig.baudrate.c_str());
|
|
|
|
|
|
// ƵµÀ;
|