hsaturn / TinyMqtt

ESP 8266 / 32 / WROOM Small footprint Mqtt Broker and Client
GNU General Public License v3.0
183 stars 40 forks source link

More informative error on version mismatch #59

Closed richievos closed 1 year ago

richievos commented 1 year ago

I spent a lot of time debugging my arduino, trying to figure out why my calls were all failing. Turned out to be due to the mqtt cli using v5, while this library only supports v4. By mqtt cli I mean the hivemq one, which is the first one that shows up on google searches.

Being new to mqtt this burned me for awhile, so I'm hoping this helps the next person. Both by having this PR show up if they search, and making the error more informative.

hsaturn commented 1 year ago

I'm going to test and try to fix this if possible.

Feel free to add more information there https://github.com/hsaturn/TinyMqtt/issues/66 For example a set of hive commands that fails ?

Thanks for the PR