|
@@ -995,6 +995,8 @@ int main(int argc, char *argv[]) {
|
|
|
char *OcppServerURL=NULL;
|
|
|
char *ChargeBoxId=NULL;
|
|
|
char *chargePointVendor=NULL;
|
|
|
+ int OcppSecurityProfile=0;
|
|
|
+ char *OcppSecurityPassword=NULL;
|
|
|
int isEnableLocalPowerSharging=0;
|
|
|
|
|
|
if( json_object_object_get_ex(jobj, "BackendConnTimeout", &val_obj) ) {
|
|
@@ -1025,6 +1027,14 @@ int main(int argc, char *argv[]) {
|
|
|
chargePointVendor = (char*)json_object_get_string(val_obj);
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.chargePointVendor,chargePointVendor);
|
|
|
}
|
|
|
+ if( json_object_object_get_ex(jobj, "OcppSecurityProfile", &val_obj) ) {
|
|
|
+ OcppSecurityProfile = json_object_get_int(val_obj);
|
|
|
+ ShmSysConfigAndInfo->SysConfig.OcppSecurityProfile = OcppSecurityProfile;
|
|
|
+ }
|
|
|
+ if( json_object_object_get_ex(jobj, "OcppSecurityPassword", &val_obj) ) {
|
|
|
+ OcppSecurityPassword = (char*)json_object_get_string(val_obj);
|
|
|
+ strcpy((char *)&ShmSysConfigAndInfo->SysConfig.OcppSecurityPassword,OcppSecurityPassword);
|
|
|
+ }
|
|
|
if( json_object_object_get_ex(jobj, "isEnableLocalPowerSharging", &val_obj) ) {
|
|
|
isEnableLocalPowerSharging = json_object_get_int(val_obj);
|
|
|
ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharging = isEnableLocalPowerSharging;
|
|
@@ -1561,6 +1571,8 @@ int main(int argc, char *argv[]) {
|
|
|
struct json_object *OcppServerURL;
|
|
|
struct json_object *ChargeBoxId;
|
|
|
struct json_object *chargePointVendor;
|
|
|
+ struct json_object *OcppSecurityProfile;
|
|
|
+ struct json_object *OcppSecurityPassword;
|
|
|
struct json_object *isEnableLocalPowerSharging;
|
|
|
|
|
|
jobj1=json_object_new_object();
|
|
@@ -2167,6 +2179,8 @@ int main(int argc, char *argv[]) {
|
|
|
OcppConnStatus = json_object_new_int(ShmSysConfigAndInfo->SysInfo.OcppConnStatus);
|
|
|
OcppServerURL = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.OcppServerURL);
|
|
|
ChargeBoxId = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.ChargeBoxId);
|
|
|
+ OcppSecurityProfile = json_object_new_int(ShmSysConfigAndInfo->SysConfig.OcppSecurityProfile);
|
|
|
+ OcppSecurityPassword = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.OcppSecurityPassword);
|
|
|
chargePointVendor = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.chargePointVendor);
|
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
|
isEnableLocalPowerSharging = json_object_new_int(ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharging);
|
|
@@ -2520,6 +2534,8 @@ int main(int argc, char *argv[]) {
|
|
|
json_object_object_add(jobj4,"OcppServerURL",OcppServerURL);
|
|
|
json_object_object_add(jobj4,"ChargeBoxId",ChargeBoxId);
|
|
|
json_object_object_add(jobj4,"chargePointVendor",chargePointVendor);
|
|
|
+ json_object_object_add(jobj4,"OcppSecurityProfile",OcppSecurityProfile);
|
|
|
+ json_object_object_add(jobj4,"OcppSecurityPassword",OcppSecurityPassword);
|
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
|
json_object_object_add(jobj4,"isEnableLocalPowerSharging",isEnableLocalPowerSharging);
|
|
|
}
|