|
@@ -369,6 +369,7 @@ int main(int argc, char *argv[]) {
|
|
|
char isRFID = NULL;
|
|
|
char QRCodeMadeMode = NULL;
|
|
|
char *QRCodeContent = NULL;
|
|
|
+ char Intensity = NULL;
|
|
|
|
|
|
if( json_object_object_get_ex(jobj, "SystemId", &val_obj) ) {
|
|
|
SystemId = (char*)json_object_get_string(val_obj);
|
|
@@ -406,6 +407,9 @@ int main(int argc, char *argv[]) {
|
|
|
if( json_object_object_get_ex(jobj, "QRCodeContent", &val_obj) ) {
|
|
|
QRCodeContent = json_object_get_string(val_obj);
|
|
|
}
|
|
|
+ if( json_object_object_get_ex(jobj, "Intensity", &val_obj) ) {
|
|
|
+ Intensity = json_object_get_int(val_obj);
|
|
|
+ }
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.SystemId,SystemId);
|
|
|
ShmSysConfigAndInfo->SysConfig.PhaseLossPolicy = PhaseLossPolicy;
|
|
|
ShmSysConfigAndInfo->SysInfo.FactoryConfiguration = FactoryConfiguration;
|
|
@@ -417,6 +421,7 @@ int main(int argc, char *argv[]) {
|
|
|
ShmSysConfigAndInfo->SysConfig.isRFID = isRFID;
|
|
|
ShmSysConfigAndInfo->SysConfig.QRCodeMadeMode = QRCodeMadeMode;
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.QRCodeContent,QRCodeContent);
|
|
|
+ ShmSysConfigAndInfo->SysConfig.LedInfo.Intensity = Intensity;
|
|
|
|
|
|
if(strlen(SystemDateTime)>0){
|
|
|
char cmd[100];
|
|
@@ -1074,6 +1079,7 @@ int main(int argc, char *argv[]) {
|
|
|
struct json_object *isRFID;
|
|
|
struct json_object *QRCodeMadeMode;
|
|
|
struct json_object *QRCodeContent;
|
|
|
+ struct json_object *Intensity;
|
|
|
struct json_object *AuxPower5V;
|
|
|
struct json_object *AuxPower12V;
|
|
|
struct json_object *AuxPower24V;
|
|
@@ -1219,6 +1225,7 @@ int main(int argc, char *argv[]) {
|
|
|
isRFID = json_object_new_int(ShmSysConfigAndInfo->SysConfig.isRFID);
|
|
|
QRCodeMadeMode = json_object_new_int(ShmSysConfigAndInfo->SysConfig.QRCodeMadeMode);
|
|
|
QRCodeContent = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.QRCodeContent);
|
|
|
+ Intensity = json_object_new_int(ShmSysConfigAndInfo->SysConfig.LedInfo.Intensity);
|
|
|
AuxPower5V = json_object_new_int(ShmSysConfigAndInfo->SysInfo.AuxPower5V);
|
|
|
AuxPower12V = json_object_new_int(ShmSysConfigAndInfo->SysInfo.AuxPower12V);
|
|
|
AuxPower24V = json_object_new_int(ShmSysConfigAndInfo->SysInfo.AuxPower24V);
|
|
@@ -1633,7 +1640,7 @@ int main(int argc, char *argv[]) {
|
|
|
json_object_object_add(jobj1,"SerialNumber",SerialNumber);
|
|
|
json_object_object_add(jobj1,"SystemId",SystemId);
|
|
|
json_object_object_add(jobj1,"AcPhaseCount",AcPhaseCount);
|
|
|
- json_object_object_add(jobj2,"PhaseLossPolicy",PhaseLossPolicy);
|
|
|
+ json_object_object_add(jobj1,"PhaseLossPolicy",PhaseLossPolicy);
|
|
|
json_object_object_add(jobj1,"FactoryConfiguration",FactoryConfiguration);
|
|
|
json_object_object_add(jobj1,"AuthorisationMode",AuthorisationMode);
|
|
|
json_object_object_add(jobj1,"DefaultLanguage",DefaultLanguage);
|
|
@@ -1651,6 +1658,7 @@ int main(int argc, char *argv[]) {
|
|
|
json_object_object_add(jobj1,"isRFID",isRFID);
|
|
|
json_object_object_add(jobj1,"QRCodeMadeMode",QRCodeMadeMode);
|
|
|
json_object_object_add(jobj1,"QRCodeContent",QRCodeContent);
|
|
|
+ json_object_object_add(jobj1,"Intensity",Intensity);
|
|
|
json_object_object_add(jobj1,"AuxPower5V",AuxPower5V);
|
|
|
json_object_object_add(jobj1,"AuxPower12V",AuxPower12V);
|
|
|
json_object_object_add(jobj1,"AuxPower24V",AuxPower24V);
|