X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConstants.js;h=ba2412c2a08d87f723c8093c1a1b960fcd9eb38e;hb=2328be1eb45cef063d1d56a2e948c50840af4735;hp=d8a265c51091bdcce2ad7b8f58bdddbe0478b7fb;hpb=dcab13bd38c8362aa507d29bc0eb5ce36b27a753;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Constants.js b/src/utils/Constants.js index d8a265c5..ba2412c2 100644 --- a/src/utils/Constants.js +++ b/src/utils/Constants.js @@ -32,7 +32,7 @@ class Constants { static ENTITY_LOGGING = 'Logging'; static ENTITY_PRICING = 'Pricing'; - static NOTIF_TYPE_CHARGING_STATION_CONFIGURATION = 'Configuration'; + static NOTIFICATION_TYPE_CHARGING_STATION_CONFIGURATION = 'Configuration'; static ACTION_READ = 'Read'; static ACTION_CREATE = 'Create'; @@ -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 @@ -134,6 +135,12 @@ class Constants { static OCPP_VERSION_15 = '1.5'; static OCPP_VERSION_16 = '1.6'; static OCPP_VERSION_20 = '2.0'; + + static STATUS_NOTIFICATION_TIMEOUT = 500; + static START_TRANSACTION_TIMEOUT = 500; + + static CHARGING_STATION_DEFAULT_RESET_TIME = 60000; // ms + static CHARGING_STATION_ATG_WAIT_TIME = 2000; // ms } module.exports = Constants;