From: Jérôme Benoit Date: Sun, 21 May 2023 22:12:43 +0000 (+0200) Subject: refactor: cleanup constants namespace X-Git-Tag: v1.2.14~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7d34a2f48aed78f2e398cae994351c6fa1bd29dc;p=e-mobility-charging-stations-simulator.git refactor: cleanup constants namespace Signed-off-by: Jérôme Benoit --- diff --git a/.vscode/settings.json b/.vscode/settings.json index 26d1001e..f76083ba 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -35,6 +35,7 @@ "Recurrency", "robohydra", "sonarlint", + "SRPC", "tsdoc", "VCAP", "webui" diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 5ce061e8..1e95df4d 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1675,7 +1675,7 @@ export class ChargingStation { await Utils.sleep( this?.bootNotificationResponse?.interval ? this.bootNotificationResponse.interval * 1000 - : Constants.OCPP_DEFAULT_BOOT_NOTIFICATION_INTERVAL + : Constants.DEFAULT_BOOT_NOTIFICATION_INTERVAL ); } } while ( diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 421cac55..730f1f28 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -1,7 +1,7 @@ import { MeterValueMeasurand } from '../types'; export class Constants { - static readonly OCPP_DEFAULT_BOOT_NOTIFICATION_INTERVAL = 60000; // Ms + static readonly DEFAULT_BOOT_NOTIFICATION_INTERVAL = 60000; // Ms static readonly CHARGING_STATION_DEFAULT_RESET_TIME = 60000; // Ms static readonly CHARGING_STATION_ATG_INITIALIZATION_TIME = 1000; // Ms