Hi @Gordon and all,
I've an Espruino Pico. Is it possible for the MQTT client to connect to the MQTT broker over WebSocket protocol?
Yes, it should be possible. Just establish the WebSocket connection, call mqtt=require("MQTT").create(...) and then mqtt.connect(websocketConnection);
Sine MQTT is expecting a .write function and .data event you might have to fiddle it a bit though
Thank you! @Gordon Let me give a try.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem