LoRa/LoRaWAN tutorial 58: Uplink and downlink messages using the Paho MQTT Python client library @Mobilefish
LoRa/LoRaWAN tutorial 58: Uplink and downlink messages using the Paho MQTT Python client library  @Mobilefish
Uploaded August 2021 | Updated September 2026, 2 weeks ago
If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
youtube.com/c/mobilefish/about

This is part 58 of the LoRa/LoRaWAN tutorial.

In this tutorial I will demonstrate a Python script using the Paho MQTT Python client library, which connects to The Things Stack MQTT Server, and receives uplink messages from my end node.
And also in this tutorial I will demonstrate another Python script using the same Paho MQTT Python client library, which again connects to The Things Stack MQTT Server, but now it sends downlink messages to my end node.

This presentation can be found at:
mobilefish.com/download/lora/lora_part58.pdf

All my LoRa/LoRaWAN tutorials and presentations can be found at:
mobilefish.com/developer/lorawan/lorawan_quickguide_tutorial.html

This Python script
mobilefish.com/download/lora/receive_uplink_messages.py.txt
receives uplink messages from my end node via The Things Stack MQTT Server by using the Paho MQTT Python client library.
This Python script is tested using Python version: 3.7
Required library: paho-mqtt (v1.5.1)
The received uplink messages are:
- humidity and temperature data (DHT11)
- button pressed.

This Python script
mobilefish.com/download/lora/send_downlink_messages.py.txt
sends downlink messages to my end node via The Things Stack MQTT Server by using the Paho MQTT Python client library.
This Python script is tested using Python version: 3.7
Required library: paho-mqtt (v1.5.1)
By sending different hex values at fport 3, two leds (yellow and green) can be switched on or off.
The Python script converts the hex value to its corresponding base64 representation.

The end node in both demos is the same as the one used in tutorial 57.

The Python scripts used in this tutorial originates from this Github page (Please note: I made several modifications):
github.com/descartes/TheThingsStack-Integration-Starters

Information about how to work with integrations in The Things Stack:
thethingsindustries.com/docs/integrations
For example on this page you can find how to connect to an MQTT client and subscribe to uplinks or publish downlinks.

Check out all my other LoRa/LoRaWAN tutorial videos:
youtube.com/playlist?list=PLmL13yqb6OxdeOi97EvI8QeO8o-PqeQ0g

Subscribe to my YouTube channel:
youtube.com/channel/UCG5_CT_KjexxjbgNE4lVGkg?sub_confirmation=1

#mobilefish #lora #lorawan
LoRa/LoRaWAN tutorial 58: Uplink and downlink messages using the Paho MQTT Python client libraryBTW cursus 7: Opgaaf intracommunautaire prestaties (ICP)Blockchain tutorial 2: Random numbersLoRa/LoRaWAN tutorial 25: Downlink Demonstration With The Things NetworkLoRa/LoRaWAN tutorial 12: Modulation Types and Chirp Spread SpectrumCreate a LoRa node, part 2: Prepare the module adapter plateTransparent plastic case and heat sinks for Raspberry Pi 3 Model B from AliExpressIOTA tutorial 23: Masked Authenticated Messaging Demo Store FileChinese radicals in English 21/22Testcoins for Rinkeby testnet | Procedure does not work anymoreBTW cursus 1: BTW-identificatienummersCompile and deploy solidity code
Mobilefish.com |

LoRa/LoRaWAN tutorial 58: Uplink and downlink messages using the Paho MQTT Python client library

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER