X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2F1.6%2FOCPP16RequestService.ts;h=7158e5348251218e3325b4028dcd94fa88762d2e;hb=0ce9babe5c83eced0e773109d4393c1ab487039f;hp=05ab1eb3d1bc6badd37888ef91b77796c815af3d;hpb=62340a29089d0753f45b57dc3e5b8d4871c7d736;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/1.6/OCPP16RequestService.ts b/src/charging-station/ocpp/1.6/OCPP16RequestService.ts index 05ab1eb3..7158e534 100644 --- a/src/charging-station/ocpp/1.6/OCPP16RequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16RequestService.ts @@ -122,7 +122,11 @@ export class OCPP16RequestService extends OCPPRequestService { ), ], ]); - this.buildRequestPayload.bind(this); + this.buildRequestPayload = this.buildRequestPayload.bind(this) as ( + chargingStation: ChargingStation, + commandName: OCPP16RequestCommand, + commandParams?: JsonType + ) => Request; } public async requestHandler(