public get stationInfo(): ChargingStationInfo {
return {
- ...this.internalStationInfo,
...{
enableStatistics: false,
remoteAuthorization: true,
reconnectExponentialDelay: false,
stopTransactionsOnStopped: true,
},
+ ...this.internalStationInfo,
};
}
? stationTemplate.power * 1000
: stationTemplate.power;
}
+ stationInfo.maximumAmperage = this.getMaximumAmperage(stationInfo);
stationInfo.firmwareVersionPattern =
stationTemplate?.firmwareVersionPattern ?? Constants.SEMVER_PATTERN;
if (
stationInfo.resetTime = !isNullOrUndefined(stationTemplate?.resetTime)
? secondsToMilliseconds(stationTemplate.resetTime!)
: Constants.CHARGING_STATION_DEFAULT_RESET_TIME;
- stationInfo.maximumAmperage = this.getMaximumAmperage(stationInfo);
return stationInfo;
}
}
private getCurrentOutType(stationInfo?: ChargingStationInfo): CurrentType {
- return (stationInfo ?? this.stationInfo).currentOutType!;
+ return (stationInfo ?? this.stationInfo).currentOutType ?? CurrentType.AC;
}
private getVoltageOut(stationInfo?: ChargingStationInfo): number {