X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPConstants.ts;h=2abb197892d1bb1dc35e0dd87d0739d37e9f3d58;hb=30695dcf67470f149e349d196b3d016482d11a17;hp=40807c88e3bd51535207f21ead64f629bbd4b712;hpb=66a7748ddeda8c94d7562a1ce58d440319654a4c;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPConstants.ts b/src/charging-station/ocpp/OCPPConstants.ts index 40807c88..2abb1978 100644 --- a/src/charging-station/ocpp/OCPPConstants.ts +++ b/src/charging-station/ocpp/OCPPConstants.ts @@ -15,7 +15,6 @@ import { Constants } from '../../utils/index.js' // eslint-disable-next-line @typescript-eslint/no-extraneous-class export class OCPPConstants { static readonly OCPP_WEBSOCKET_TIMEOUT = 60000 // Ms - static readonly OCPP_TRIGGER_MESSAGE_DELAY = 500 // Ms static readonly OCPP_MEASURANDS_SUPPORTED = Object.freeze([ MeterValueMeasurand.STATE_OF_CHARGE, @@ -27,8 +26,13 @@ export class OCPPConstants { static readonly OCPP_REQUEST_EMPTY = Constants.EMPTY_FROZEN_OBJECT static readonly OCPP_RESPONSE_EMPTY = Constants.EMPTY_FROZEN_OBJECT - static readonly OCPP_RESPONSE_ACCEPTED = Object.freeze({ status: GenericStatus.Accepted }) - static readonly OCPP_RESPONSE_REJECTED = Object.freeze({ status: GenericStatus.Rejected }) + static readonly OCPP_RESPONSE_ACCEPTED = Object.freeze({ + status: GenericStatus.Accepted + }) + + static readonly OCPP_RESPONSE_REJECTED = Object.freeze({ + status: GenericStatus.Rejected + }) static readonly OCPP_CONFIGURATION_RESPONSE_ACCEPTED = Object.freeze({ status: ConfigurationStatus.ACCEPTED @@ -66,7 +70,10 @@ export class OCPPConstants { status: ClearChargingProfileStatus.UNKNOWN }) - static readonly OCPP_RESPONSE_UNLOCKED = Object.freeze({ status: UnlockStatus.UNLOCKED }) + static readonly OCPP_RESPONSE_UNLOCKED = Object.freeze({ + status: UnlockStatus.UNLOCKED + }) + static readonly OCPP_RESPONSE_UNLOCK_FAILED = Object.freeze({ status: UnlockStatus.UNLOCK_FAILED })