Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
): Promise<ResponseType> {
// FIXME?: add sanity checks on charging station availability, connector availability, connector status, etc.
if (OCPP16ServiceUtils.isRequestCommandSupported(chargingStation, commandName)) {
- // Post request actions hook
+ // Pre request actions hook
switch (commandName) {
case OCPP16RequestCommand.START_TRANSACTION:
await OCPP16ServiceUtils.sendAndSetConnectorStatus(
): Promise<ResponseType> {
// FIXME?: add sanity checks on charging station availability, connector availability, connector status, etc.
if (OCPP20ServiceUtils.isRequestCommandSupported(chargingStation, commandName)) {
- // TODO: post request actions hook
+ // TODO: pre request actions hook
return (await this.sendMessage(
chargingStation,
generateUUID(),