);
}
- public async sendTransactionBeginMeterValues(
- connectorId: number,
- transactionId: number,
- beginMeterValue: OCPP16MeterValue
- ): Promise<void> {
- const payload: MeterValuesRequest = {
- connectorId,
- transactionId,
- meterValue: [beginMeterValue],
- };
- await this.sendMessage(Utils.generateUUID(), payload, OCPP16RequestCommand.METER_VALUES);
- }
-
public async sendTransactionEndMeterValues(
connectorId: number,
transactionId: number,
requestPayload.meterStart
);
this.chargingStation.getBeginEndMeterValues() &&
- (await this.chargingStation.ocppRequestService.sendTransactionBeginMeterValues(
- connectorId,
- payload.transactionId,
- this.chargingStation.getConnectorStatus(connectorId).transactionBeginMeterValue
+ (await this.chargingStation.ocppRequestService.sendMessageHandler(
+ OCPP16RequestCommand.METER_VALUES,
+ {
+ connectorId,
+ transactionId: payload.transactionId,
+ meterValue:
+ this.chargingStation.getConnectorStatus(connectorId).transactionBeginMeterValue,
+ }
));
await this.chargingStation.ocppRequestService.sendMessageHandler(
OCPP16RequestCommand.STATUS_NOTIFICATION,
params?: SendParams
): Promise<ResponseType>;
- public abstract sendTransactionBeginMeterValues(
- connectorId: number,
- transactionId: number,
- beginMeterValue: MeterValue
- ): Promise<void>;
-
public abstract sendTransactionEndMeterValues(
connectorId: number,
transactionId: number,