Publish JSON Data over MQTT with Node-Red

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024
  • One of the the most common use scenarios for using JSON data is for combining data from multiple sources.
    In this tutorial we will simulate a multi-sensor environment were we collect data from several sensors and publish it wusing MQTT on a single topic using JSON encoded Data.
    The video also demonstrates how we can hold and delay publishing data while we combine it.
    To accomplish this we use a fuction node and use the context object to store sensor values before we publish them.
    Related Tutorials and Resources
    Flow used in video
    stevesnoderedguide.com/downlo...
    -
    stevesnoderedguide.com/workin...
    -----------------------
    Introduction to JSON
    www.w3schools.com/js/js_json_...
    ------------------
    Working With JSON Data in Node Red
    • Working With JSON Data...
    ----------
    Creating a Simple Controllable MQTT Sensor With Node-Red
    • Creating a Simple Cont...
    ---------
    The Node-Red Message Object for Beginners
    • The Node-Red Message O...
    ------------
    Create a Node Red Basic Flow - MQTT Subscribe Example
    • Quick Introduction to ...
    ---------------------------------
    How to Create a Node-Red MQTT Dashboard
    • How to Create a Node-R...
    ---------------------------
    How to Store Data In Node Red Variables
    • How to Store Data In N...
    -----------------------
    Receive JSON Data Over MQTT with Node-Red
    • Receive JSON Data Over...
    Have a question Use the comments or if you want help then use
    www.steves-internet-guide.com/...
    If you find these videos useful then you might want to consider buying me a coffee
    www.paypal.me/StepenCope
  • ХоббиХобби

Комментарии • 16

  • @loggerman247
    @loggerman247 5 лет назад

    Hi Steve, just wanted to say how clear and understandable your tutorials are; you have helped a great deal! Cheers, Adrian

  • @astrogerard
    @astrogerard 6 лет назад

    Thanks for sharing and taking the time to make these useful tutorials.

  • @zhinadr534
    @zhinadr534 5 лет назад

    You really helped me a lot, I watched almost all of your videos. Thank you.

    • @stevecope
      @stevecope  5 лет назад

      Glad to be of help
      rgds
      steve

  • @nurwardiahspian9833
    @nurwardiahspian9833 6 лет назад +1

    thanks for sharing..this is a very useful tutorials

  • @anamariadragulinescu8088
    @anamariadragulinescu8088 4 года назад +1

    The only node you have not opened (for the settings) was JSON....

  • @petersamoaa8535
    @petersamoaa8535 6 лет назад

    Hi, Thanks for your useful video
    but just I need to ask you about thing.
    suppose that I have Mosca broker on my local machine and send JSON data related to GPS position with the format
    { payload: __, context: { lat: __ lng: __ }, timestamp: __ }
    and other Mqtt subscribe in this content.
    can you illustrate this ?!

    • @stevecope
      @stevecope  6 лет назад +1

      Peter
      Do you mean how to decode it?

    • @petersamoaa8535
      @petersamoaa8535 6 лет назад

      Steve Cope yes that's exactly what i mean

    • @stevecope
      @stevecope  6 лет назад +1

      Hi
      I've just uploaded a video that explains it. I hope!
      ruclips.net/video/jeSg4bM8Kf0/видео.html

    • @petersamoaa8535
      @petersamoaa8535 6 лет назад

      Thanks so much I'm going to see it