mqtt

281 views
Skip to first unread message

Frederic Jouannin

unread,
Feb 3, 2017, 11:12:03 AM2/3/17
to DroidScript
hello,

i would like to use mosquitto mqtt broker on my synology between arduino and android device using droidscript. No problem with arduino's language
but what about droidscript ??


Dave Smart

unread,
Feb 4, 2017, 12:46:19 PM2/4/17
to DroidScript
I got something working about 6 months ago, but I can't remember the details.  Pretty sure I used browserify to convert a node.js plugin into a single js file for use in DroidScript and used mosquitto on a Node.js server.

Charles Wilt

unread,
Feb 4, 2017, 2:22:30 PM2/4/17
to DroidScript
Dave,

Do you remember the module name?

Dave Smart

unread,
Feb 5, 2017, 1:55:32 PM2/5/17
to DroidScript
Yep, I've found the code.

It was the mqtt node module and the mosca node module.  I browserfied it and got it working using websocket mode (I think).  

Some more info can be found here:-   


I've attached my browserify folder to this post.  Let me know if anyone makes some progress please.

I've also attached my mosca server script.
mqtt.zip.dat
mosca.js

Charles Wilt

unread,
Feb 5, 2017, 4:09:34 PM2/5/17
to DroidScript
At the moment I am working on a crypto plugin. Once I have it done I will dig into mqtt.

Yves Glassner

unread,
Feb 12, 2017, 7:49:48 AM2/12/17
to DroidScript
I use Paho mqtt client on droidscript. Working fine with Mosquitto on windows 10.
Had to compile it with websocket support.
Reply all
Reply to author
Forward
0 new messages