|
@@ -1071,6 +1071,7 @@ int main(int argc, char *argv[]) {
|
|
char *OcppSecurityPassword=NULL;
|
|
char *OcppSecurityPassword=NULL;
|
|
char *MaintainServerSecurityPassword=NULL;
|
|
char *MaintainServerSecurityPassword=NULL;
|
|
int isEnableLocalPowerSharging=0;
|
|
int isEnableLocalPowerSharging=0;
|
|
|
|
+ int PowerSharingCapacity=0;
|
|
char *PowerSharingServerIP=NULL;
|
|
char *PowerSharingServerIP=NULL;
|
|
char *OcppReceiptrURL=NULL;
|
|
char *OcppReceiptrURL=NULL;
|
|
char *MaintainServerURL=NULL;
|
|
char *MaintainServerURL=NULL;
|
|
@@ -1132,6 +1133,10 @@ int main(int argc, char *argv[]) {
|
|
isEnableLocalPowerSharging = json_object_get_int(val_obj);
|
|
isEnableLocalPowerSharging = json_object_get_int(val_obj);
|
|
ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharing = isEnableLocalPowerSharging;
|
|
ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharing = isEnableLocalPowerSharging;
|
|
}
|
|
}
|
|
|
|
+ if( json_object_object_get_ex(jobj, "PowerSharingCapacity", &val_obj) ) {
|
|
|
|
+ PowerSharingCapacity = json_object_get_int(val_obj);
|
|
|
|
+ ShmSysConfigAndInfo->SysConfig.PowerSharingCapacityPower = PowerSharingCapacity;
|
|
|
|
+ }
|
|
if( json_object_object_get_ex(jobj, "PowerSharingServerIP", &val_obj) ) {
|
|
if( json_object_object_get_ex(jobj, "PowerSharingServerIP", &val_obj) ) {
|
|
PowerSharingServerIP = (char*)json_object_get_string(val_obj);
|
|
PowerSharingServerIP = (char*)json_object_get_string(val_obj);
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.PowerSharingServerIP,PowerSharingServerIP);
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.PowerSharingServerIP,PowerSharingServerIP);
|
|
@@ -1881,6 +1886,7 @@ int main(int argc, char *argv[]) {
|
|
struct json_object *MaintainServerSecurityProfile;
|
|
struct json_object *MaintainServerSecurityProfile;
|
|
struct json_object *MaintainServerSecurityPassword;
|
|
struct json_object *MaintainServerSecurityPassword;
|
|
struct json_object *isEnableLocalPowerSharging;
|
|
struct json_object *isEnableLocalPowerSharging;
|
|
|
|
+ struct json_object *PowerSharingCapacity;
|
|
struct json_object *PowerSharingServerIP;
|
|
struct json_object *PowerSharingServerIP;
|
|
struct json_object *OcppReceiptrURL;
|
|
struct json_object *OcppReceiptrURL;
|
|
struct json_object *MaintainServerURL;
|
|
struct json_object *MaintainServerURL;
|
|
@@ -2568,6 +2574,7 @@ int main(int argc, char *argv[]) {
|
|
MaintainServerURL = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.MaintainServerURL);
|
|
MaintainServerURL = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.MaintainServerURL);
|
|
if(strcmp(IsDO, "AX") == 0 ){
|
|
if(strcmp(IsDO, "AX") == 0 ){
|
|
isEnableLocalPowerSharging = json_object_new_int(ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharing);
|
|
isEnableLocalPowerSharging = json_object_new_int(ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharing);
|
|
|
|
+ PowerSharingCapacity = json_object_new_int(ShmSysConfigAndInfo->SysConfig.PowerSharingCapacityPower);
|
|
PowerSharingServerIP = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.PowerSharingServerIP);
|
|
PowerSharingServerIP = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.PowerSharingServerIP);
|
|
}
|
|
}
|
|
if(strcmp(IsDO, "AX") == 0|| strcmp(IsAcDc, "D") == 0){
|
|
if(strcmp(IsDO, "AX") == 0|| strcmp(IsAcDc, "D") == 0){
|
|
@@ -2999,6 +3006,7 @@ int main(int argc, char *argv[]) {
|
|
json_object_object_add(jobj4,"MaintainServerURL",MaintainServerURL);
|
|
json_object_object_add(jobj4,"MaintainServerURL",MaintainServerURL);
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
json_object_object_add(jobj4,"isEnableLocalPowerSharging",isEnableLocalPowerSharging);
|
|
json_object_object_add(jobj4,"isEnableLocalPowerSharging",isEnableLocalPowerSharging);
|
|
|
|
+ json_object_object_add(jobj4,"PowerSharingCapacity",PowerSharingCapacity);
|
|
json_object_object_add(jobj4,"PowerSharingServerIP",PowerSharingServerIP);
|
|
json_object_object_add(jobj4,"PowerSharingServerIP",PowerSharingServerIP);
|
|
}
|
|
}
|
|
if(strcmp(IsDO, "AX") == 0 || strcmp(IsAcDc, "D") == 0){
|
|
if(strcmp(IsDO, "AX") == 0 || strcmp(IsAcDc, "D") == 0){
|