ProcedureName.STOP_AUTOMATIC_TRANSACTION_GENERATOR,
this.handleStopAutomaticTransactionGenerator.bind(this) as ProtocolRequestHandler
);
+ this.requestHandlers.set(
+ ProcedureName.AUTHORIZE,
+ this.handleAuthorize.bind(this) as ProtocolRequestHandler
+ );
+ this.requestHandlers.set(
+ ProcedureName.STATUS_NOTIFICATION,
+ this.handleStatusNotification.bind(this) as ProtocolRequestHandler
+ );
+ this.requestHandlers.set(
+ ProcedureName.HEARTBEAT,
+ this.handleHeartbeat.bind(this) as ProtocolRequestHandler
+ );
}
private handleStartChargingStation(uuid: string, payload: RequestPayload): void {
payload
);
}
+
+ private handleAuthorize(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(uuid, BroadcastChannelProcedureName.AUTHORIZE, payload);
+ }
+
+ private handleStatusNotification(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(
+ uuid,
+ BroadcastChannelProcedureName.STATUS_NOTIFICATION,
+ payload
+ );
+ }
+
+ private handleHeartbeat(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(uuid, BroadcastChannelProcedureName.HEARTBEAT, payload);
+ }
}