params?: RequestParams
): Promise<ResponseType> {
if (OCPP16ServiceUtils.isRequestCommandSupported(chargingStation, commandName) === true) {
- const requestPayload = this.buildRequestPayload<RequestType>(
- chargingStation,
- commandName,
- commandParams
- );
return (await this.sendMessage(
chargingStation,
Utils.generateUUID(),
- requestPayload,
+ this.buildRequestPayload<RequestType>(chargingStation, commandName, commandParams),
commandName,
params
)) as unknown as ResponseType;
return {
idTag: Constants.DEFAULT_IDTAG,
meterStart: chargingStation.getEnergyActiveImportRegisterByConnectorId(
- commandParams?.connectorId as number
+ commandParams?.connectorId as number,
+ true
),
timestamp: new Date(),
...commandParams,