handle empty id tag in stopTransaction
- according to OCTT , TestCase 032_2 when the powerless occurred while the vehicle is charging and you don't have a backup power source then the charging point should send stop transaction to the back-end to close the opened session when powerless happened , but in this case the charging-point doesn't have the id-tag that corresponds to that opened session as we keep it as part of the session in the run time , so the only way to stop the session is to get this id-tag from the cache data base.
@mahdidadashi65 @thom-gh @SiarheiVolkau @ruudvd
Hi, I'm not sure you have to send an idTag in this case since no user has presented physically nor remotely an idTag to stop the transaction. The StopReason::PowerLoss should be sufficient.
@c-jimenez there was already an IdTag presented by the user and was ongoing transaction , then powerloss happens , so i need to stop transcation when the system start again but I don't have the idTag for this session and you don't provide any API to get the IDTag , do you have any suggestion to stop transaction without the IdTag ?
Hi,
In your case, you must call the ChargePoint::stopTransaction() method with an empty string for the id_tag parameter and Reason::PowerLoss for the reason parameter.