>(chargingStation, OCPP16RequestCommand.START_TRANSACTION, {
connectorId: transactionConnectorId,
idTag,
+ reservationId: chargingStation.getReservationBy(
+ 'connectorId',
+ chargingStation.getConnectorStatus(0)!.status === OCPP16ChargePointStatus.Reserved
+ ? 0
+ : transactionConnectorId,
+ )!,
})
).idTagInfo.status === OCPP16AuthorizationStatus.ACCEPTED
) {
>(chargingStation, OCPP16RequestCommand.START_TRANSACTION, {
connectorId: transactionConnectorId,
idTag,
+ reservationId: chargingStation.getReservationBy(
+ 'connectorId',
+ chargingStation.getConnectorStatus(0)!.status === OCPP16ChargePointStatus.Reserved
+ ? 0
+ : transactionConnectorId,
+ )!,
})
).idTagInfo.status === OCPP16AuthorizationStatus.ACCEPTED
) {
'connectorId',
reservedOnConnectorZero ? 0 : transactionConnectorId,
)!;
- payload.reservationId = reservation.reservationId;
await chargingStation.removeReservation(
reservation,
ReservationTerminationReason.TRANSACTION_STARTED,