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.
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.
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:
I opened to see where the error is, and it definitely reports on something inside MQTT.min.js . Please help.
Thanks,
Jordan