hsaturn / TinyMqtt

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

Bad payload received by local client #46

Closed hsaturn closed 1 year ago

hsaturn commented 1 year ago

Steps to reproduce

1 - Compile and run tinymqtt-test.ino 2 - Connect an mqtt explorer (ex: http://mqtt-explorer.com/) 3 - Use the following 'script' 3.1 > ls -> ensure mqtt-explorer is connected 3.2 > client c broker -> create a local client 3.3 > c.pub sensor 128 -> 128 should be received by mqtt-explorer 3.4 > c.sub # -> local client subscribes to all 3.5 > c.pub value 120 -> 120 received by mqtt-explorer but bad payload received by the local client !

hsaturn commented 1 year ago

Fixed with https://github.com/hsaturn/TinyMqtt/commit/7bd9c27b8912086216fc295559e090ca9d70b613 This was a bad display of the payload. Fixed with other bugs in this example.