When publishing with QoS 1, publish() always returned false after first
255 messages. It was due to comparision between uint8 and uint16
variables. (line 136). Now publish with QoS1 works fine even after rollover after 2^16 messages.
Thanks for that. Wow, that was a brain-fart on my behalf.
My sensor node only sends a few messages before going back to sleep, so this didn't impact me.
When publishing with QoS 1, publish() always returned false after first 255 messages. It was due to comparision between uint8 and uint16 variables. (line 136). Now publish with QoS1 works fine even after rollover after 2^16 messages.