X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConstants.js;h=3c7e13a05939c2afed7824ca65b4a5520220d234;hb=34dcb3b54b6b7825adb8aa8129709febd2cf96ac;hp=a7ffe4f4578369d8cdd004e9e2116ac872683032;hpb=f7869514b1450a852ff707ba1a3beaecccea9ba7;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Constants.js b/src/utils/Constants.js index a7ffe4f4..3c7e13a0 100644 --- a/src/utils/Constants.js +++ b/src/utils/Constants.js @@ -101,6 +101,8 @@ class Constants { static WS_UNSUPPORTED_DATA = 1007; + static OCPP_RESPONSE_ACCEPTED = {status: 'Accepted'}; + static OCPP_RESPONSE_REJECTED = {status: 'Rejected'}; 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 @@ -132,6 +134,9 @@ 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; } module.exports = Constants;