|
@@ -1063,6 +1063,7 @@ int main(int argc, char *argv[]) {
|
|
|
char *OcppSecurityPassword=NULL;
|
|
|
char *MaintainServerSecurityPassword=NULL;
|
|
|
int isEnableLocalPowerSharging=0;
|
|
|
+ char *PowerSharingServerIP=NULL;
|
|
|
char *OcppReceiptrURL=NULL;
|
|
|
char *MaintainServerURL=NULL;
|
|
|
/*for TTIA*/
|
|
@@ -1123,6 +1124,10 @@ int main(int argc, char *argv[]) {
|
|
|
isEnableLocalPowerSharging = json_object_get_int(val_obj);
|
|
|
ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharing = isEnableLocalPowerSharging;
|
|
|
}
|
|
|
+ if( json_object_object_get_ex(jobj, "PowerSharingServerIP", &val_obj) ) {
|
|
|
+ PowerSharingServerIP = (char*)json_object_get_string(val_obj);
|
|
|
+ strcpy((char *)&ShmSysConfigAndInfo->SysConfig.PowerSharingServerIP,PowerSharingServerIP);
|
|
|
+ }
|
|
|
if( json_object_object_get_ex(jobj, "OcppReceiptrURL", &val_obj) ) {
|
|
|
OcppReceiptrURL = (char*)json_object_get_string(val_obj);
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.OcppReceiptrURL,OcppReceiptrURL);
|
|
@@ -1857,6 +1862,7 @@ int main(int argc, char *argv[]) {
|
|
|
struct json_object *MaintainServerSecurityProfile;
|
|
|
struct json_object *MaintainServerSecurityPassword;
|
|
|
struct json_object *isEnableLocalPowerSharging;
|
|
|
+ struct json_object *PowerSharingServerIP;
|
|
|
struct json_object *OcppReceiptrURL;
|
|
|
struct json_object *MaintainServerURL;
|
|
|
/*for TTIA*/
|
|
@@ -2542,6 +2548,7 @@ int main(int argc, char *argv[]) {
|
|
|
MaintainServerURL = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.MaintainServerURL);
|
|
|
if(strcmp(IsDO, "AX") == 0 ){
|
|
|
isEnableLocalPowerSharging = json_object_new_int(ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharing);
|
|
|
+ PowerSharingServerIP = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.PowerSharingServerIP);
|
|
|
}
|
|
|
if(strcmp(IsDO, "AX") == 0|| strcmp(IsAcDc, "D") == 0){
|
|
|
OcppReceiptrURL = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.OcppReceiptrURL);
|
|
@@ -2971,6 +2978,7 @@ int main(int argc, char *argv[]) {
|
|
|
json_object_object_add(jobj4,"MaintainServerURL",MaintainServerURL);
|
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
|
json_object_object_add(jobj4,"isEnableLocalPowerSharging",isEnableLocalPowerSharging);
|
|
|
+ json_object_object_add(jobj4,"PowerSharingServerIP",PowerSharingServerIP);
|
|
|
}
|
|
|
if(strcmp(IsDO, "AX") == 0 || strcmp(IsAcDc, "D") == 0){
|
|
|
json_object_object_add(jobj4,"OcppReceiptrURL",OcppReceiptrURL);
|