Publish JSON Data over MQTT with Node-Red

preview_player
Показать описание
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
-
-----------------------
Introduction to JSON
------------------
Working With JSON Data in Node Red
----------
Creating a Simple Controllable MQTT Sensor With Node-Red
---------
The Node-Red Message Object for Beginners
------------
Create a Node Red Basic Flow - MQTT Subscribe Example
---------------------------------
How to Create a Node-Red MQTT Dashboard
---------------------------
How to Store Data In Node Red Variables
-----------------------
Receive JSON Data Over MQTT with Node-Red

Have a question Use the comments or if you want help then use
If you find these videos useful then you might want to consider buying me a coffee
Рекомендации по теме
Комментарии
Автор

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

loggerman
Автор

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

zhinadr
Автор

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

astrogerard
Автор

thanks for sharing..this is a very useful tutorials

nurwardiahspian
Автор

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

anamariadragulinescu
Автор

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 ?!

petersamoaa