MQTT
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 1
- Joined: Mon Nov 06, 2017 3:39 pm
Re: MQTT
Hello,
Got a request to look into MQTT for IoT project today. Has anyone created a LC based soltuion with MQTT yet? Any experience and example code is much appriciated.
Got a request to look into MQTT for IoT project today. Has anyone created a LC based soltuion with MQTT yet? Any experience and example code is much appriciated.
-
- VIP Livecode Opensource Backer
- Posts: 76
- Joined: Tue Mar 05, 2013 7:00 pm
- Location: Berlin
- Contact:
Re: MQTT
Hello,
any news on this topic?
I found a native Objective-C iOS library
https://github.com/novastone-media/MQTT ... -Framework
I could imagine that somebody with the right experience should be able to build an iOS extension / widget,
but i don't know how complicated it would be.
IOT and MQTT are interesting topics today
and if we could access the incoming data it would be easy to built nice interfaces with livecode.
Here you will find a list of MQTT related staff:
https://github.com/hobbyquaker/awesome- ... n-tracking
any news on this topic?
I found a native Objective-C iOS library
https://github.com/novastone-media/MQTT ... -Framework
I could imagine that somebody with the right experience should be able to build an iOS extension / widget,
but i don't know how complicated it would be.
IOT and MQTT are interesting topics today
and if we could access the incoming data it would be easy to built nice interfaces with livecode.
Here you will find a list of MQTT related staff:
https://github.com/hobbyquaker/awesome- ... n-tracking
MQTT & LiveCode
<t>Good Day.<br/>
<br/>
Are there any examples or tutorials for using LiveCode and MQTT?<br/>
<br/>
Thanks<br/>
~David</t>
<br/>
Are there any examples or tutorials for using LiveCode and MQTT?<br/>
<br/>
Thanks<br/>
~David</t>
Re: MQTT & LiveCode
You are talking about that transport scheme for IOT devices, right?
If so, not that I'm aware of.
If so, not that I'm aware of.
Re: MQTT & LiveCode
Yes, well more or less..
Trying to communicate with weather station, Software Defined Radio, and WeMos devices.
I'm pretty good with serial communications, but this is totally new. No clue how to get started..
Was getting good at parsing data, but can't get the data.
~David
Trying to communicate with weather station, Software Defined Radio, and WeMos devices.
I'm pretty good with serial communications, but this is totally new. No clue how to get started..
Was getting good at parsing data, but can't get the data.
~David
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: MQTT & LiveCode
I took a gander at the Wikipedia page for the protocol:
https://en.m.wikipedia.org/wiki/MQTT
Lightweight, TCP-based, client-server - definitely doable in LC, though I'm not aware of an existing library for it.
Doesn't seem like it would take much to write one, though, given sufficient time and motivation. As protocols go, this one seems pretty straightforward, and since you only need the client side it gets simpler still.
It may be helpful to run through this tutorial to get a feel for crafting a simple client-server socket app in LC:
http://lessons.livecode.com/m/4071/l/12 ... ng-sockets
With that under your belt you may find you'll have plenty of confidence to approach MQTT.
https://en.m.wikipedia.org/wiki/MQTT
Lightweight, TCP-based, client-server - definitely doable in LC, though I'm not aware of an existing library for it.
Doesn't seem like it would take much to write one, though, given sufficient time and motivation. As protocols go, this one seems pretty straightforward, and since you only need the client side it gets simpler still.
It may be helpful to run through this tutorial to get a feel for crafting a simple client-server socket app in LC:
http://lessons.livecode.com/m/4071/l/12 ... ng-sockets
With that under your belt you may find you'll have plenty of confidence to approach MQTT.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: MQTT & LiveCode
Trevor put some lcb code together for the last conference to use libmosquitto.
Code: Select all
https://github.com/trevordevore/lc-mosquitto
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: MQTT
Trevor created an lcb extension to use libmosquitto:
Code: Select all
https://github.com/trevordevore/lc-mosquitto
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: MQTT & LiveCode
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: MQTT & LiveCode
make it so
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: MQTT & LiveCode
Done, merged into the one in the Internet section where it's more likely to be discovered by interested passersby.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 361
- Joined: Wed Apr 27, 2011 2:12 pm
Re: MQTT
I tried to get this to work - followed all the instructions - loaded the .lcb file into extension builder. Ran the livecode test file and when I click the check lib Misquitto version button, I get an error:
Has anyone been able to work with this recently (in 2020)?
Any help is greatly appreciated.
Mike
Code: Select all
button "Check libMosquitto Version": execution error at line 2 (LCB Error in file D:/Documents/clients/renatus/lc-mosquitto-master/mosquitto/mosquitto.lcb at line 164: unable to load foreign library)
Any help is greatly appreciated.
Mike
-
- Posts: 361
- Joined: Wed Apr 27, 2011 2:12 pm
Re: MQTT
Turned out I was using 64 bit in a 32 bit version.
I talked with Trevor and he was able to round up 64 bit versions of the library.
Copying and pasting those in place in the /code folder made this library work in 64 bit.
Thank you Trevor!
Question: how does one log into a IP address to receive messages (I assume a sub) using this library?
My client wants me to receive sensor data by subscribing to his topic after logging into his IP address.
So far it just hangs.
Thanks.
Mike
I talked with Trevor and he was able to round up 64 bit versions of the library.
Copying and pasting those in place in the /code folder made this library work in 64 bit.
Thank you Trevor!
Question: how does one log into a IP address to receive messages (I assume a sub) using this library?
My client wants me to receive sensor data by subscribing to his topic after logging into his IP address.
So far it just hangs.
Thanks.
Mike