This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

MQTT Client example
#1
Hello,

recently I was trying to find some examples how LM supports MQTT protocol, as it is stated in marketing materials, but I was not able to find one. I imagine the concept of  MQTT support in this way.
Some mqtt client daemon has to run on LM.
LM as a publisher - it is possible to publish group address values to topics.
LM as a subscriber  it is possible to subscribe to topics and assign values to group address.

1. Is my understanding correct?
2. Could you point me out some tutorials?

Thank you for response in advance
Anton
Reply
#2
bump up
Reply
#3
MQTT packages:

https://dl.openrb.com/lm-17/pkg/libcares...-1_mxs.ipk 
https://dl.openrb.com/lm-17/pkg/libmosquitto_1.4.11-1_mxs.ipk 
https://dl.openrb.com/lm-17/pkg/luamosqu...-1_mxs.ipk


Lua library:
https://github.com/flukso/lua-mosquitto/
Reply
#4
(08.08.2016, 06:11)admin Wrote: MQTT packages:
https://dl.openrb.com/lm-16.07-rc/pkg/li...-1_mxs.ipk
https://dl.openrb.com/lm-16.07-rc/pkg/li...-1_mxs.ipk
https://dl.openrb.com/lm-16.07-rc/pkg/lu...-1_mxs.ipk

Lua library:
https://github.com/flukso/lua-mosquitto/

Hi,

All working. I use Resident script with 60 sec loop. All subscriptions received just in time.

Should I use resident script only?

And just in case: I use login_set before connect
client:login_set("login","pass")
Reply
#5
Hey guys, I tried to download packages for mqtt client but I've got 404 error, any ideas where could I find them?

Thanks,
David
Reply
#6
Same here. Need them for my Azure testing towards an IoTHub.
Please provide them again for download Smile

Best regards
Eilert
Reply


Forum Jump: