MQTT-Client-Framework
MQTT-Client-Framework copied to clipboard
Handling multiple connect/disconnect sequences
trafficstars
If you call [session connect] or [session disconnect] in a row MQTTSession will try to do flow second time as well where it could just return immediately. Basic implementation of this should be simple relatively simple. I am however not sure if this use case should be solved inside or outside of the framework. What do you think?
I think this is a good idea to do it within the framework
I will think about whether do throw an exception if calls are made which are forbidden in the state or if I just return.