LoRa/LoRaWAN tutorial 58: Uplink and downlink messages using the Paho MQTT Python client library
HTML-код
- Опубликовано: 6 сен 2024
- If you like this video and want to support me, go this page for my donation Paypal or crypto addresses:
/ mobilefish
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:
www.mobilefish...
All my LoRa/LoRaWAN tutorials and presentations can be found at:
www.mobilefish...
This Python script
www.mobilefish...
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
www.mobilefish...
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/des...
Information about how to work with integrations in The Things Stack:
www.thethingsi...
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:
• LoRa/LoRaWAN tutorials
Subscribe to my RUclips channel:
/ @mobilefish
#mobilefish #lora #lorawan
Just wanted to thank you for this video. Nothing else I've found before worked. I can finally complete my project. :)
Hello professor,
I was given a project that is a remote chatting program without internet connection. One of the specifications is using lora module.However,I'm not allowed to use any server.The package transfer must be done between end-to-end devices.So,I researched that how to do this but I found nothing.Could you please help me how to do this kinda transfer?
Thank you sir.
Hello, can you make a video sending data to TTN V3 using Lora Dragino shield 1.4, i'm trying the OTAA example included in the LMIC library v4, thanks
Hi is there an Arduino sketch that supports Class C to listen always for downlinks?
Hello Sir, I first have to say that the video is very useful. I have a little puzzle. I do not see the program you wrote in the Payload formatter (in the TTN) to send Downlink to the node?
Hello Sir, i am using LG02 lora gateway 433Mhz, I cannot install Limic library, Could you please show me how to do it? thank you Sir in advance
When I tried eXecuting the code I am getting a error for ssl certificate expired
I guess one of you tutorials explains the LoRa circuit setup you are using in this video, could you please give me its reference?
www.mobilefish.com/developer/lorawan/lorawan_quickguide_build_lora_node_rfm95_arduino_pro_mini_v3.html