Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.4 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.4 KB

Blynk MQTT client for Lua

Lua is a lightweight programming language that offers a flexible scripting solution for networked IoT devices. When used on OpenWRT it allows for the development of custom networking applications and device management scripts, leveraging Lua's simplicity and efficiency.

OpenWRT's extensive support for various networking protocols and hardware makes it a robust platform for IoT devices requiring custom routing, firewall rules, and network monitoring, with Lua scripts enabling dynamic configuration and automation.


Prepare your Device in Blynk.Cloud

  1. Create Blynk template based on the provided blueprint. Click the Use Blueprint button in MQTT Air Cooler/Heater Demo.
  2. In the left panel, select Devices
  3. Click New Device button
  4. Select From Template -> MQTT Demo, and click Create

Note

Please note the device credentials that appear in the upper right corner. You'll need them in the next step.

Running on OpenWRT

opkg install lua libmosquitto-ssl lua-mosquitto
lua blynk_mqtt_client.lua $BLYNK_AUTH_TOKEN

Further reading