this.handleUnsupportedVersion(this.getOcppVersion());
break;
}
- if (this.stationInfo?.autoRegister) {
+ if (this.stationInfo?.autoRegister === true) {
this.bootNotificationResponse = {
currentTime: new Date().toISOString(),
interval: this.getHeartbeatInterval() / 1000,
}
private async startMessageSequence(): Promise<void> {
- if (this.stationInfo?.autoRegister) {
+ if (this.stationInfo?.autoRegister === true) {
await this.ocppRequestService.requestHandler<
BootNotificationRequest,
BootNotificationResponse
if (HeartBeatInterval) {
return Utils.convertToInt(HeartBeatInterval.value) * 1000;
}
- !this.stationInfo?.autoRegister &&
+ this.stationInfo?.autoRegister === false &&
logger.warn(
`${this.logPrefix()} Heartbeat interval configuration key not set, using default value: ${
Constants.DEFAULT_HEARTBEAT_INTERVAL