Yes, it should be possible. Just establish the WebSocket connection, call mqtt=require("MQTT").create(...) and then mqtt.connect(websocketConnection);
mqtt=require("MQTT").create(...)
mqtt.connect(websocketConnection);
Sine MQTT is expecting a .write function and .data event you might have to fiddle it a bit though
.write
.data
Thank you! @Gordon Let me give a try.
@sureshkm 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.
Yes, it should be possible. Just establish the WebSocket connection, call
mqtt=require("MQTT").create(...)
and thenmqtt.connect(websocketConnection);
Sine MQTT is expecting a
.write
function and.data
event you might have to fiddle it a bit though