MQTT-Client-Framework icon indicating copy to clipboard operation
MQTT-Client-Framework copied to clipboard

Handling multiple connect/disconnect sequences

Open jcavar opened this issue 8 years ago • 1 comments
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?

jcavar avatar Jul 10 '17 09:07 jcavar

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.

ckrey avatar Aug 02 '17 18:08 ckrey