refactor: cleanup constants namespace
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 21 May 2023 22:12:43 +0000 (00:12 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 21 May 2023 22:12:43 +0000 (00:12 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.vscode/settings.json
src/charging-station/ChargingStation.ts
src/utils/Constants.ts

index 26d1001eb405953a80e64e641c7c2de62842e64f..f76083ba617a187a15ad5881a633791fc9502b1e 100644 (file)
@@ -35,6 +35,7 @@
     "Recurrency",
     "robohydra",
     "sonarlint",
+    "SRPC",
     "tsdoc",
     "VCAP",
     "webui"
index 5ce061e8ed64c988b607f3f6b494b0d30c0526ad..1e95df4da9b5918a8f30c10386f4109156f0328d 100644 (file)
@@ -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 (
index 421cac55cbc9d15ed435ab86ae65148577376625..730f1f28db9f610667c162f9edcbef7ce22900a0 100644 (file)
@@ -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