ocpp icon indicating copy to clipboard operation
ocpp copied to clipboard

Send transaction with event_type = 'Update'

Open betovaca opened this issue 4 years ago • 0 comments

Hi, This question is only about python and not the protocol. How do you send periodically the transacion_event_request once a transaction started? I'm actually implementing the use case E02 from OCPP 2.0.1 and I managed to start the energy offer but I can't receive my meter values from this problem:

I'm using aioconsole to send my requests, which is working fine, but when it comes to the transaction with event type updated it blocks all the inputs from the console

I tried making an

await asyncio.sleep(txupdatedinterval) 
await send_transaction_event_request(...)

But the asyncio.sleep blocks my console and I can't do any other task from the CS. My goal is to send an send_transaction_event_request(event_type='Ended') from the console but I can't. So I'm stuch in my ongoing transaction and I can't stop it.

Do you have an idea to help me?

betovaca avatar Feb 22 '22 15:02 betovaca