You are reading a single comment by @user70979 and its replies. Click here to read the full conversation.
  • Trying to load MQTT on ESP8266/Espruino reports an error. Here is what I put in the IDE:

    var mqtt = require("MQTT").create("192.168.1.10");

    when I try to upload this script I get:

    Uncaught Error: Both arguments to addCached must be strings
    at line 9 col 201
    ...t,a);a.connect();return a}});

                              ^
    

    WARNING: Module "MQTT" not found
    Uncaught Error: Field or method "create" does not already exist, and can't create it on undefined
    at line 1 col 27
    var mqtt = require("MQTT").create("192.168.1.10");

                          ^
    

    =undefined


    I opened to see where the error is, and it definitely reports on something inside MQTT.min.js . Please help.

    Thanks,
    Jordan

About

Avatar for user70979 @user70979 started