5 Steps to Remotely Control DO via MQTT
Download PDF: 5 Steps to Remotely Control DO via MQTT
What is MQTT?
MQTT, also called Message Queuing Telemetry Transport, is an internet protocol designed for constrained devices with low-bandwidth. It allows users to send commands to remotely control DO via MQTT, read and publish data from sensor nodes and much more. It is commonly seen in the IoT (the Internet of Things) applications, where admins can easily establish a communication between multiple devices and realize centralized management.
This guide tells you how to remote control DO via MQTT in just a few minutes.
Gateway Configuration
Note: Gateway firmware version should be above 80.0.0.28. You can downlaod the latest firmware here.
- Step 1: navigate to “LoRaWAN®/Network Server/Applications/”, click the Edit button.
- Step 2: configure MQTT Parameters
- Step 3: configuring MQTT.fx
- Step 4: subscribe Uplink Topic
- Step 5: control the DO
Publish Topic Format :
application/[applicationID/device/[devEUI]/tx
Sample :
application/1/device/24e1612292633821/tx
Command
- For UC1122 & UC1152
Set DO1 high
Set DO1 low
- For UC1114
Set DO1 high
Set DO1 low
Set DO2 high
Set DO2 low
IoT Glossary
MQTT (MQ Telemetry Transport) is an open OASIS and ISO standard (ISO/IEC PRF 20922) lightweight, a publish-subscribe network protocol that transports messages between devices. The protocol usually runs over TCP/IP; however, any network protocol that provides ordered, lossless, bi-directional connections can support MQTT. It is designed for connections with remote locations where a “small code footprint” is required or the network bandwidth is limited. The MQTT protocol defines two types of network entities: a message broker and a number of clients. An MQTT broker is a server that receives all messages from the clients and then routes the messages to the appropriate destination clients.[11] An MQTT client is any device (from a microcontroller up to a full-fledged server) that runs an MQTT library and connects to an MQTT broker over a network. (from Wikipedia)