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

Поділитися
Вставка
  • Опубліковано 9 сер 2021
  • 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.com/download/l...
    All my LoRa/LoRaWAN tutorials and presentations can be found at:
    www.mobilefish.com/developer/...
    This Python script
    www.mobilefish.com/download/l...
    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.com/download/l...
    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/TheThing...
    Information about how to work with integrations in The Things Stack:
    www.thethingsindustries.com/d...
    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 UA-cam channel:
    / @mobilefish
    #mobilefish #lora #lorawan
  • Наука та технологія

КОМЕНТАРІ • 9

  • @CandyyPants
    @CandyyPants Рік тому

    Just wanted to thank you for this video. Nothing else I've found before worked. I can finally complete my project. :)

  • @VuBuiVan-bf9yb
    @VuBuiVan-bf9yb Рік тому

    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?

  • @proudwing
    @proudwing 2 роки тому +1

    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.

  • @user-vv2wk2dz5n
    @user-vv2wk2dz5n 2 роки тому +1

    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

  • @nor24o2010
    @nor24o2010 2 роки тому +1

    Hi is there an Arduino sketch that supports Class C to listen always for downlinks?

  • @steventran5490
    @steventran5490 2 роки тому

    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

  • @ranpim619
    @ranpim619 2 роки тому

    When I tried eXecuting the code I am getting a error for ssl certificate expired

  • @jesuschal3802
    @jesuschal3802 2 роки тому +1

    I guess one of you tutorials explains the LoRa circuit setup you are using in this video, could you please give me its reference?

    • @Mobilefish
      @Mobilefish  2 роки тому

      www.mobilefish.com/developer/lorawan/lorawan_quickguide_build_lora_node_rfm95_arduino_pro_mini_v3.html