OCPPMiddleware: Support for Remote Start and Stop
Add support for:
- RemoteStartTransaction
- RemoteStopTransaction
Hi, @danielnord Thanks for the implementation. How can I trigger the RemoteStartTransaction / RemoteStopTransaction from Central System?
@danielnord You haven't handle the RemoteStartTransaction and RemoteStopTransaction, and you don't get any result back from them even they work actually but this line here string apiResult = await msgOut.TaskCompletionSource.Task; will wait forever because it never completes, I tried a solution on my own, however things get messy as the msgOut can't be passed from a HandlerMethod to another as they get reinitialized and completing the task on RemoteStartTransactionHandler wasn't a good idea as the StartTransaction command starts afterward and the result should be returned from the HandleStartTransaction method which returns the TransactionId :). I am still trying to figure out how to make it work, I will leave a reply in case I make it :)
Any news regarding the implementation of RemoteStartTransaction and RemoteStopTransaction ?
Any news regarding the implementation of RemoteStartTransaction and RemoteStopTransaction ?
I did an ugly solution for myself, forgot the details but I remember I created a "tracker" class to know when to end the await of task completion, it worked when I tested it but as I said I don't remember details.