X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FHelpers.ts;h=22ed5041e0515cc6b0769b3acb85df2d54525287;hb=8f9060ba0f4e2e22053ceb34f357bb8a1263d889;hp=f69d86f8fe180d9af9652ab70626fd65c872b695;hpb=d760a0a625ddec9919e7ad691ddcd60ded1452b0;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Helpers.ts b/src/charging-station/Helpers.ts index f69d86f8..22ed5041 100644 --- a/src/charging-station/Helpers.ts +++ b/src/charging-station/Helpers.ts @@ -338,12 +338,18 @@ export const setChargingStationOptions = ( stationInfo: ChargingStationInfo, options?: ChargingStationOptions ): ChargingStationInfo => { + if (options?.supervisionUrls != null) { + stationInfo.supervisionUrls = options.supervisionUrls + } if (options?.persistentConfiguration != null) { stationInfo.stationInfoPersistentConfiguration = options.persistentConfiguration stationInfo.ocppPersistentConfiguration = options.persistentConfiguration stationInfo.automaticTransactionGeneratorPersistentConfiguration = options.persistentConfiguration } + if (options?.autoStart != null) { + stationInfo.autoStart = options.autoStart + } if (options?.autoRegister != null) { stationInfo.autoRegister = options.autoRegister } @@ -493,6 +499,7 @@ export const stationTemplateToStationInfo = ( delete stationTemplate.Evses delete stationTemplate.Configuration delete stationTemplate.AutomaticTransactionGenerator + delete stationTemplate.numberOfConnectors delete stationTemplate.chargeBoxSerialNumberPrefix delete stationTemplate.chargePointSerialNumberPrefix delete stationTemplate.meterSerialNumberPrefix