X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPConstants.ts;h=e4ac8d7ffce43dbfa19a66ade823e6792ed3df9d;hb=63a402d3bbdc7ab6e997ed6eab164e9ff4af371a;hp=c8b110e4262131d4ea33f6332cbe65766f53ff70;hpb=59b6ed8d1db313ef3371efd8ab5e039cf3dedab0;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPConstants.ts b/src/charging-station/ocpp/OCPPConstants.ts index c8b110e4..e4ac8d7f 100644 --- a/src/charging-station/ocpp/OCPPConstants.ts +++ b/src/charging-station/ocpp/OCPPConstants.ts @@ -11,6 +11,9 @@ import { import { Constants } from '../../utils'; export class OCPPConstants { + static readonly OCPP_WEBSOCKET_TIMEOUT = 60000; // Ms + static readonly OCPP_TRIGGER_MESSAGE_DELAY = 500; // Ms + static readonly OCPP_REQUEST_EMPTY = Constants.EMPTY_FREEZED_OBJECT; static readonly OCPP_RESPONSE_EMPTY = Constants.EMPTY_FREEZED_OBJECT; static readonly OCPP_RESPONSE_ACCEPTED = Object.freeze({ status: GenericStatus.Accepted }); @@ -89,7 +92,7 @@ export class OCPPConstants { status: DataTransferStatus.REJECTED, }); - private constructor() { + protected constructor() { // This is intentional } }