null,
2
)} while the charging station is in pending state on the central server`,
- commandName
+ commandName,
+ commandPayload
);
}
if (
chargingStation.isRegistered() ||
(!chargingStation.getOcppStrictCompliance() && chargingStation.isInUnknownState())
) {
- if (this.incomingRequestHandlers.has(commandName)) {
+ if (
+ this.incomingRequestHandlers.has(commandName) &&
+ ChargingStationUtils.isCommandSupported(commandName, chargingStation.stationInfo)
+ ) {
try {
// Call the method to build the response
response = await this.incomingRequestHandlers.get(commandName)(
null,
2
)}`,
- commandName
+ commandName,
+ commandPayload
);
}
} else {
null,
2
)} while the charging station is not registered on the central server.`,
- commandName
+ commandName,
+ commandPayload
);
}
// Send the built response
>(chargingStation, OCPP16RequestCommand.METER_VALUES, {
connectorId,
transactionId,
- meterValue: transactionEndMeterValue,
+ meterValue: [transactionEndMeterValue],
});
}
const stopResponse = await chargingStation.ocppRequestService.requestHandler<
>(chargingStation, OCPP16RequestCommand.METER_VALUES, {
connectorId,
transactionId,
- meterValue: transactionEndMeterValue,
+ meterValue: [transactionEndMeterValue],
});
}
await chargingStation.ocppRequestService.requestHandler<
return Constants.OCPP_RESPONSE_ACCEPTED;
}
}
- logger.info(
+ logger.warn(
chargingStation.logPrefix() +
' Trying to remote stop a non existing transaction ' +
transactionId.toString()