I am writing an customised MQTT client with aiomqtt being the basis of development. I want to implement publisher and subscriber clients as such, that it is able to make one stable connect and reconnects to the client once it disconnects to the broker some way.
aiomqtt mostly function on context manager, i.e. the async with client.
Is it possible with some minimal efforts to do so, came across these issues, which seem not to be conclusive and implemented.
- https://github.com/sbtinstruments/aiomqtt/issues/268
- https://github.com/sbtinstruments/aiomqtt/issues/48
I have tried context manager to implement basic subscriber and publisher.
RaiD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.