Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 493 Bytes

File metadata and controls

26 lines (17 loc) · 493 Bytes

Paho Lua Client Sample

A slight taste of MQTT using Lua.

Prerequisites

Install Paho Lua Client

$ git clone https://git.eclipse.org/r/paho/org.eclipse.paho.mqtt.lua
$ cd org.eclipse.paho.mqtt.lua
$ luarocks make --local rocks/paho-mqtt-0.3.0-1.rockspec

You're all set.

Note: This sample has been made using LDT.

Run

$ lua src/main.lua