MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

BeginTransaction process with 2 connectors

Open martamartz opened this issue 1 year ago • 0 comments

Hello Matth,

I'm working with a charger with two connectors (connectorId = 1 and connectorId = 2). When a card is detected and both connectors are available, I would like to start charging on the connectorId where the car is plugged in (taking into account ocpp_setConnectorPluggedInput_m and ConnectionTimeOut).

To achieve this, I have tried: ocpp_beginTransaction_m(1, idTag); and ocpp_beginTransaction_m(2, idTag); but this sends two Authorize messages when only one is needed.

I have also tried: ocpp_beginTransaction_m(0, idTag); and then plug into connectorId 2. It only sends one Authorize, but the charging does not start on 2.

Is there any way to do this? Or is the only way for the library to default to assigning it to connectorId 1?

Thankss!!

martamartz avatar Mar 27 '24 09:03 martamartz