this.configuredSupervisionUrl
);
}
- this.bootNotificationRequest = ChargingStationUtils.createBootNotificationRequest(
- this.stationInfo
- );
- this.powerDivider = this.getPowerDivider();
- // OCPP configuration
- this.ocppConfiguration = this.getOcppConfiguration();
- this.initializeOcppConfiguration();
- this.initializeOcppServices();
- if (this.stationInfo?.autoRegister === true) {
- this.bootNotificationResponse = {
- currentTime: new Date(),
- interval: this.getHeartbeatInterval() / 1000,
- status: RegistrationStatusEnumType.ACCEPTED,
- };
- }
if (
this.stationInfo.firmwareStatus === FirmwareStatus.Installing &&
Utils.isNotEmptyString(this.stationInfo.firmwareVersion) &&
).toString();
this.stationInfo.firmwareVersion = match?.join('.');
}
+ this.bootNotificationRequest = ChargingStationUtils.createBootNotificationRequest(
+ this.stationInfo
+ );
+ this.powerDivider = this.getPowerDivider();
+ // OCPP configuration
+ this.ocppConfiguration = this.getOcppConfiguration();
+ this.initializeOcppConfiguration();
+ this.initializeOcppServices();
+ if (this.stationInfo?.autoRegister === true) {
+ this.bootNotificationResponse = {
+ currentTime: new Date(),
+ interval: this.getHeartbeatInterval() / 1000,
+ status: RegistrationStatusEnumType.ACCEPTED,
+ };
+ }
}
private initializeOcppServices(): void {
import type { ChargingStation } from './internal';
import type { ConfigurationKey, ConfigurationKeyType } from '../types';
-import { Constants, logger } from '../utils';
+import { logger } from '../utils';
type ConfigurationKeyOptions = { readonly?: boolean; visible?: boolean; reboot?: boolean };
type DeleteConfigurationKeyParams = { save?: boolean; caseInsensitive?: boolean };