|
@@ -1004,6 +1004,7 @@ int main(int argc, char *argv[]) {
|
|
|
char *OcppSecurityPassword=NULL;
|
|
|
int isEnableLocalPowerSharging=0;
|
|
|
char *OcppReceiptrURL=NULL;
|
|
|
+ char *MaintainServerURL=NULL;
|
|
|
/*for TTIA*/
|
|
|
char isEnableTTIA=0;
|
|
|
char *server_addr=NULL;
|
|
@@ -1058,6 +1059,10 @@ int main(int argc, char *argv[]) {
|
|
|
OcppReceiptrURL = (char*)json_object_get_string(val_obj);
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.OcppReceiptrURL,OcppReceiptrURL);
|
|
|
}
|
|
|
+ if( json_object_object_get_ex(jobj, "MaintainServerURL", &val_obj) ) {
|
|
|
+ MaintainServerURL = (char*)json_object_get_string(val_obj);
|
|
|
+ strcpy((char *)&ShmSysConfigAndInfo->SysConfig.MaintainServerURL,MaintainServerURL);
|
|
|
+ }
|
|
|
/*for TTIA*/
|
|
|
if( json_object_object_get_ex(jobj, "isEnableTTIA", &val_obj) ) {
|
|
|
isEnableTTIA = json_object_get_int(val_obj);
|
|
@@ -1241,6 +1246,7 @@ int main(int argc, char *argv[]) {
|
|
|
ShmSysConfigAndInfo->SysConfig.OfflineMaxChargeEnergy=0;
|
|
|
ShmSysConfigAndInfo->SysConfig.OfflineMaxChargeDuration=0;
|
|
|
ShmSysConfigAndInfo->SysInfo.OcppConnStatus=0;
|
|
|
+ ShmSysConfigAndInfo->SysInfo.MaintainServerConnStatus=0;
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.OcppServerURL,"");
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.ChargeBoxId,"");
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.chargePointVendor,"Phihong");
|
|
@@ -1651,6 +1657,7 @@ int main(int argc, char *argv[]) {
|
|
|
struct json_object *OfflineMaxChargeEnergy;
|
|
|
struct json_object *OfflineMaxChargeDuration;
|
|
|
struct json_object *OcppConnStatus;
|
|
|
+ struct json_object *MaintainServerConnStatus;
|
|
|
struct json_object *OcppServerURL;
|
|
|
struct json_object *ChargeBoxId;
|
|
|
struct json_object *chargePointVendor;
|
|
@@ -1658,6 +1665,7 @@ int main(int argc, char *argv[]) {
|
|
|
struct json_object *OcppSecurityPassword;
|
|
|
struct json_object *isEnableLocalPowerSharging;
|
|
|
struct json_object *OcppReceiptrURL;
|
|
|
+ struct json_object *MaintainServerURL;
|
|
|
/*for TTIA*/
|
|
|
struct json_object *isEnableTTIA;
|
|
|
struct json_object *server_addr;
|
|
@@ -2326,11 +2334,13 @@ int main(int argc, char *argv[]) {
|
|
|
OfflineMaxChargeEnergy = json_object_new_int(ShmSysConfigAndInfo->SysConfig.OfflineMaxChargeEnergy);
|
|
|
OfflineMaxChargeDuration = json_object_new_int(ShmSysConfigAndInfo->SysConfig.OfflineMaxChargeDuration);
|
|
|
OcppConnStatus = json_object_new_int(ShmSysConfigAndInfo->SysInfo.OcppConnStatus);
|
|
|
+ MaintainServerConnStatus = json_object_new_int(ShmSysConfigAndInfo->SysInfo.MaintainServerConnStatus);
|
|
|
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);
|
|
|
+ MaintainServerURL = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.MaintainServerURL);
|
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
|
isEnableLocalPowerSharging = json_object_new_int(ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharging);
|
|
|
OcppReceiptrURL = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.OcppReceiptrURL);
|
|
@@ -2745,11 +2755,13 @@ int main(int argc, char *argv[]) {
|
|
|
json_object_object_add(jobj4,"OfflineMaxChargeEnergy",OfflineMaxChargeEnergy);
|
|
|
json_object_object_add(jobj4,"OfflineMaxChargeDuration",OfflineMaxChargeDuration);
|
|
|
json_object_object_add(jobj4,"OcppConnStatus",OcppConnStatus);
|
|
|
+ json_object_object_add(jobj4,"MaintainServerConnStatus",MaintainServerConnStatus);
|
|
|
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);
|
|
|
+ json_object_object_add(jobj4,"MaintainServerURL",MaintainServerURL);
|
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
|
json_object_object_add(jobj4,"isEnableLocalPowerSharging",isEnableLocalPowerSharging);
|
|
|
json_object_object_add(jobj4,"OcppReceiptrURL",OcppReceiptrURL);
|