From: Jérôme Benoit Date: Sun, 13 Feb 2022 20:00:25 +0000 (+0100) Subject: Add charging station instance id X-Git-Tag: v1.1.48~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1629a152f62235ed9b23198dfee162ee30f75f89;p=e-mobility-charging-stations-simulator.git Add charging station instance id Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index e05ad162..84756ab7 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -52,6 +52,7 @@ export default class ChargingStation { public performanceStatistics!: PerformanceStatistics; public heartbeatSetInterval!: NodeJS.Timeout; public ocppRequestService!: OCPPRequestService; + private readonly id: string; private readonly index: number; private bootNotificationRequest!: BootNotificationRequest; private bootNotificationResponse!: BootNotificationResponse | null; @@ -66,6 +67,7 @@ export default class ChargingStation { private webSocketPingSetInterval!: NodeJS.Timeout; constructor(index: number, stationTemplateFile: string) { + this.id = Utils.generateUUID(); this.index = index; this.stationTemplateFile = stationTemplateFile; this.connectors = new Map();