Add AC/DC charging stations handling.
[e-mobility-charging-stations-simulator.git] / src / utils / Constants.js
index b5b55cc330638e54e333184c2315da4920e60aa8..7667738004b954911316a2a7a69793d3038fea6b 100644 (file)
@@ -1,4 +1,4 @@
-class Constants {
+export default class Constants {
   static REST_RESPONSE_SUCCESS = {status: 'Success'};
 
   static CONN_STATUS_AVAILABLE = 'Available';
@@ -103,6 +103,7 @@ class Constants {
 
   static OCPP_RESPONSE_ACCEPTED = {status: 'Accepted'};
   static OCPP_RESPONSE_REJECTED = {status: 'Rejected'};
+  static OCPP_RESPONSE_REBOOT_REQUIRED = {status: 'RebootRequired'};
   static OCPP_SOCKET_TIMEOUT = 60000; // 60 sec
   static OCPP_JSON_CALL_MESSAGE = 2; // Client-to-Server
   static OCPP_JSON_CALL_RESULT_MESSAGE = 3; // Server-to-Client
@@ -137,6 +138,7 @@ class Constants {
 
   static STATUS_NOTIFICATION_TIMEOUT = 500;
   static START_TRANSACTION_TIMEOUT = 500;
-}
 
-module.exports = Constants;
+  static CHARGING_STATION_DEFAULT_RESET_TIME = 60000; // ms
+  static CHARGING_STATION_ATG_WAIT_TIME = 2000; // ms
+}