Open stritti opened 6 years ago
It was an intentional choice to keep the client as small as possible by making the choice of protocol a compile time thing - not a runtime thing.
Hm, okay. But on the other hand if you search the web, there are a lot problems to use correct protocol version. It would be really cool to have auto negotiation to be more flexible using ESP with different servers.
Would be great, if the client could auto discover the MQTT version:
probably try by default initial call using MQTT 3.1.1 and if state timeout, then switch to MQTT 3.1 for current session.
See also #159