Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Which mqtt_lua fork to use?
Started by ray6 Feb 03 2020 08:48 PM

- - - - -
2 replies to this topic
mqtt lua
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ray6

[GLOBAL: userInfoPane.html]
ray6
  • Observer

  • 13 posts
  • Corona SDK

I want to build Yet Another MQTT Listener in Corona. MQTT has been around for a while, so there should be at least one good repository somewhere.

 

The Github repo at https://github.com/geekscape/mqtt_lua is eight years old. The last commit was 13 July 2012. The "Forks" page lists 54 forks, varying in age from ... well, I don't want to go looking at all 54 forks.

 

I did find another fork at https://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.lua.git/. The last commit there was 30 March 2016, so that one seems newer and fresher. 

 

But there's no fanfare or publicity surrounding org.eclipse.paho.mqtt.lua.git. Most of the articles that turn up in a web search, list the geekscape repo as the authoritative source for MQTT client Lua code.

 

So, what *is* the best mqtt_lua source? 



[TOPIC: post.html]
#2

Hendrix000007

[GLOBAL: userInfoPane.html]
Hendrix000007
  • Contributor

  • 178 posts
  • Corona SDK

Hi Ray

Can I ask if the purpose is to connect with NodeMCU 8266 or something like that?

Some years ago I was all into Lua and IOT, here´s a video where I tested some stuff. If this is what you are doing, I can digg into my libs and maybe post some codes for you :) -just glad to help you out if I can

Here´s the video: https://youtu.be/dZnZ1dduxK0

and here I test a Wemos D1 MCU with a humidity sensor (DHT11) connected (Cayenne MQTT server): https://youtu.be/dZnZ1dduxK0



[TOPIC: post.html]
#3

ray6

[GLOBAL: userInfoPane.html]
ray6
  • Observer

  • 13 posts
  • Corona SDK

Hi Ray

Can I ask if the purpose is to connect with NodeMCU 8266 or something like that?

Some years ago I was all into Lua and IOT, here´s a video where I tested some stuff. If this is what you are doing, I can digg into my libs and maybe post some codes for you :) -just glad to help you out if I can

Here´s the video: https://youtu.be/dZnZ1dduxK0

and here I test a Wemos D1 MCU with a humidity sensor (DHT11) connected (Cayenne MQTT server): https://youtu.be/dZnZ1dduxK0

 

Wow, that's so great. I love the video - my project is something similar. I'll be using it for two purposes:

1. listening to MQTT topics from an IoT edge computer, a FreeWave ZumIQ, connected to my garage door opener, and publishing MQTT topics for the edge computer to read in return.

2. Listening to MQTT traffic on a Mosquitto MQTT broker at home and at work, and on several Ignition MQTT brokers at work. The MQTT traffic will come from a combination of Arduino, Pi, BeagleBone, and the FreeWave edge computers.

(P.s. I'm not trying to sell FreeWave hardware here. That's just who I work for. Our target markets are industrial system integrators, not hobbyists. I just happen to be in a really good place at a really good time.)




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: mqtt, lua