use curl -O https://www.espruino.com/modules/MQTT.min.jsto download that module and use this code to upload to storage.
curl -O https://www.espruino.com/modules/MQTT.min.js
s = require("Storage"); module=` <content of file MQTT.min.js> `; s.write("MQTT-S",module.replace(/[\n\r]/g, ''));
Now you can use it like this:
s = require("Storage"); mqtt = require("MQTT-S");
As this does not happen to often, I am fine with those manual steps ;-)
1 Attachment
@MaBe 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.
use
curl -O https://www.espruino.com/modules/MQTT.min.js
to download that module and use this code to upload to storage.Now you can use it like this:
As this does not happen to often, I am fine with those manual steps ;-)
1 Attachment