|
@@ -668,6 +668,7 @@ int main(int argc, char *argv[]) {
|
|
|
int MaxChargingCurrent = 0;
|
|
|
int AcMaxChargingCurrent = 0;
|
|
|
int MaxChargingDuration = 0;
|
|
|
+ int StopChargingByButton = 0;
|
|
|
char *LocalWhiteCard0 = NULL;
|
|
|
char *LocalWhiteCard1 = NULL;
|
|
|
char *LocalWhiteCard2 = NULL;
|
|
@@ -725,6 +726,10 @@ int main(int argc, char *argv[]) {
|
|
|
MaxChargingDuration = json_object_get_int(val_obj);
|
|
|
ShmSysConfigAndInfo->SysConfig.MaxChargingDuration = MaxChargingDuration;
|
|
|
}
|
|
|
+ if( json_object_object_get_ex(jobj, "StopChargingByButton", &val_obj) ) {
|
|
|
+ StopChargingByButton = json_object_get_int(val_obj);
|
|
|
+ ShmSysConfigAndInfo->SysConfig.StopChargingByButton = StopChargingByButton;
|
|
|
+ }
|
|
|
if( json_object_object_get_ex(jobj, "LocalWhiteCard0", &val_obj) ) {
|
|
|
LocalWhiteCard0 = (char*)json_object_get_string(val_obj);
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.LocalWhiteCard[0],LocalWhiteCard0);
|
|
@@ -1459,6 +1464,7 @@ int main(int argc, char *argv[]) {
|
|
|
struct json_object *MaxChargingCurrent;
|
|
|
struct json_object *AcMaxChargingCurrent;
|
|
|
struct json_object *MaxChargingDuration;
|
|
|
+ struct json_object *StopChargingByButton;
|
|
|
struct json_object *LocalWhiteCard[10];
|
|
|
struct json_object *LocalWhiteCardArr= json_object_new_array();
|
|
|
struct json_object *isBilling;
|
|
@@ -1699,6 +1705,7 @@ int main(int argc, char *argv[]) {
|
|
|
MaxChargingCurrent = json_object_new_int(ShmSysConfigAndInfo->SysConfig.MaxChargingCurrent);
|
|
|
AcMaxChargingCurrent = json_object_new_int(ShmSysConfigAndInfo->SysConfig.AcMaxChargingCurrent);
|
|
|
MaxChargingDuration = json_object_new_int(ShmSysConfigAndInfo->SysConfig.MaxChargingDuration);
|
|
|
+ StopChargingByButton = json_object_new_int(ShmSysConfigAndInfo->SysConfig.StopChargingByButton);
|
|
|
LocalWhiteCard[0] = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.LocalWhiteCard[0]);
|
|
|
LocalWhiteCard[1] = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.LocalWhiteCard[1]);
|
|
|
LocalWhiteCard[2] = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.LocalWhiteCard[2]);
|
|
@@ -2215,6 +2222,7 @@ int main(int argc, char *argv[]) {
|
|
|
json_object_object_add(jobj2,"MaxChargingCurrent",MaxChargingCurrent);
|
|
|
json_object_object_add(jobj2,"AcMaxChargingCurrent",AcMaxChargingCurrent);
|
|
|
json_object_object_add(jobj2,"MaxChargingDuration",MaxChargingDuration);
|
|
|
+ json_object_object_add(jobj2,"StopChargingByButton",StopChargingByButton);
|
|
|
json_object_array_add(LocalWhiteCardArr,LocalWhiteCard[0]);
|
|
|
json_object_array_add(LocalWhiteCardArr,LocalWhiteCard[1]);
|
|
|
json_object_array_add(LocalWhiteCardArr,LocalWhiteCard[2]);
|