MQTT newbie troubles

Posted on
Page
of 2
Prev
/ 2
  • @user75453, for example, you have

    var onConnect = function() {
    

    but onConnect is not referrenced anywhere else.

  • @CriscoCrusader, that is strange as I tested it with a Pico-WiFi and Mosquitto. What board are you using and how are you connecting to the broker? I had a local http server to serve my MQTT.js

  • @user75453, my mistake, I haven't tried your github code. I tried the code snippet you show in reply #21. I hope the fix makes it into the official Espruino MQTT module.

  • Hi Stephen

    For the record, I was running into the same issue of split data packets.
    I tried your updated script and my experiment now works as expected!
    Thanks so much :) (h)

  • I've just pulled this into the main repository (thanks @Stephen-!). Hopefully it'll go live in a day or two.

    Sorry it's taken so long to sort this one out.

  • No problem, and thanks.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

MQTT newbie troubles

Posted by Avatar for Ickis @Ickis

Actions