Thanks - it sounds like you may be hitting this bug: https://github.com/olliephillips/tinyMQTT/issues/30
There's some code in there that may help? I was waiting for it to get merged into the main TinyMQTT so I could get it in Espruino's version.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks - it sounds like you may be hitting this bug: https://github.com/olliephillips/tinyMQTT/issues/30
There's some code in there that may help? I was waiting for it to get merged into the main TinyMQTT so I could get it in Espruino's version.