精品欧美一区二区三区在线观看 _久久久久国色av免费观看性色_国产精品久久在线观看_亚洲第一综合网站_91精品又粗又猛又爽_小泽玛利亚一区二区免费_91亚洲精品国偷拍自产在线观看 _久久精品视频在线播放_美女精品久久久_欧美日韩国产成人在线

Process MQTT data with Node-RED

原創(chuàng) 精選
Techplur
This article will introduce the complete operation process for accessing the MQTT server by using Node-RED, filtering and processing the MQTT data before sending it to the ??MQTT broker??. Users may q

Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.

It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single click.

Besides some basic network service application nodes, such as HTTP and WebScoket, Node-RED provides access support to the ??MQTT?? protocol. Currently, it provides an MQTT subscription node and a release node. The subscription node is used for data input, while the release node can be used for data output.

This article will introduce the complete operation process for accessing the MQTT server by using Node-RED, filtering and processing the MQTT data before sending it to the ??MQTT broker??. Users may quickly understand how to use Node-RED for simple stream processing of MQTT data.


Install Node-RED

Node-RED, installed either on your PC, or devices such as Raspberry Pi, or cloud servers, can be quickly installed and used. Here are two common methods for installation:

Use ??npm?? for global installation:

npm install -g --unsafe-perm node-red

Use ??Docker?? for installation:

docker run -it -p 1880:1880 --name mynodered nodered/node-red


Run

If you use npm for global installation, and after you are prompted that the installation is successful, you can start the Node-RED immediately by simply running the node-red command globally.

Whether Docker or npm is used, after successful startup, we only need to open the browser and enter the current address plus 1880 port number to open the browser editor page of Node-RED. For example, if running locally, open the browser and enter ??http://127.0.0.1:1880??. When you see the page shown in the following figure, it means that Node-RED has been successfully started:

Node-RED


Use MQTT in Node-RED

This article will introduce the free public ??MQTT broker??? provided by EMQ, which is created on the basis of ??MQTT Cloud - EMQX Cloud??. the access information of the server is as follows:

In the following functional demonstration, we will provide a simple use case of using Node-RED to process the received JSON data containing temperature and humidity information, then make a rule judgment on the temperature value, and send the currently changed temperature value again through MQTT when the temperature changes.


Connect MQTT server

First, drag and drop a node of MQTT into the page in the menu bar on the left. After double-clicking the node, a configuration page for editing MQTT node will appear on the right, then create a new connection information according to the content prompts, fill in other connection information of MQTT, and click on the Done button to save the node information.

Node-RED MQTT in node


Process MQTT data

Data access: Drag and drop a JSON node into the page, and we can configure an Action in the configuration page of JSON node. Then we set it as Always Convert to Javascript Object. As we can't be sure whether the received data is a JSON format data or a JSON string, the first step is to perform JSON conversion on the received messages. After configuration, we connect this node with the MQTT in node.

Data filtering: after we configure and format the received message data, drag and drop a filter node into the page. After double-clicking the node, configure the rules in the configuration page. Select a Mode first and set it as a block unless value changes. The filtering rule is that the value of the currently received data needs to be changed. At present, the data is in JSON format, and what we should judge is a certain value in the JSON data, so we need to set the value as msg.payload.temperature in Property. After the configuration is completed, click the Done button to save the configuration of data filtering node, and finally connect the node with the JSON node after the previous configuration.

Using template: after filtering the data, drag and drop a template node into the page, and double-click the node to configure the template content, so that the filtered data can be output through the template. Of course, the filtered data can be directly output by skipping this step.

Node-RED template node


Publish the processed MQTT data

Finally, send the processed data by MQTT after the above data processing and filtering, drag and drop an MQTT out node into the page, fill in the same connection information as MQTT in node, configure a Topic for users to receive data, save it, then connect it with the template node, and click the Deploy button in the upper right corner to deploy the current rule application online.


Test

After finishing the function arrangement of the whole stream data processing, we use ??MQTT 5.0 client - MQTT X?? to test and validate the usability of this function. We create a new connection, connect it with the MQTT cloud service address previously configured in Node-RED, and then enter the Topic in the MQTT in node to send a message, so that Node-RED can receive the MQTT data we have sent.

Then we subscribe to a Topic configured in MQTT X node to receive the processed message data. When a message data containing temperature and humidity information is sent, we can receive a message sent according to the message template we set, but we can't receive it again if it is sent again.

As the temperature value has not changed at this time, and when we modify the temperature value again, we will find that we have received another message reminding us that the temperature value has changed.


Summary

Now we have completed the whole process for installing and connecting with MQTT cloud service by using Node-RED, and filtering and processing MQTT message data, and finally sending the processed data message.

The interaction and use of Node-RED, that is, using UI to describe general business logic, can lower the threshold for non-professional developers to get started. TO use a visual tool to quickly create the required complex execution tasks, users may build complex tasks through simple node connection, which is very helpful, especially for some IoT application scenarios.

Written by Shifan Yu from EMQ

責(zé)任編輯:龐桂玉 來(lái)源: 51CTO
相關(guān)推薦

2023-10-06 23:36:50

2022-02-16 09:01:33

編程工具Node-RED編輯器

2021-04-18 20:46:30

工具代碼編程

2022-01-10 09:44:06

鴻蒙HarmonyOS應(yīng)用

2021-06-03 08:14:01

NodeProcessJavaScript

2018-11-03 16:29:48

Red HatKDE桌面環(huán)境

2009-02-27 17:16:12

LinuxRed Hat桌面

2022-08-30 21:47:03

MQTT ProtoOthers

2018-08-17 06:13:16

物聯(lián)網(wǎng)協(xié)議MQTTMQTT-SN

2023-07-27 15:04:10

Node.js核心API

2009-02-18 10:20:50

Red HatSun市值

2012-06-29 09:30:14

Red HatPaaS 平臺(tái)

2011-03-15 16:12:45

iptablesRed Hat

2009-03-30 14:26:15

LinuxRed Hat收購(gòu)

2009-03-30 14:36:52

LinuxRed Hat桌面

2022-09-26 11:30:40

MQTT協(xié)議客戶(hù)端協(xié)議

2022-08-31 15:09:03

PythonOthers

2023-08-25 09:17:38

2020-11-18 11:36:35

鴻蒙系統(tǒng)

2020-12-07 12:47:22

MQTT鴻蒙hi3861
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

蜜桃无码一区二区三区| 99久久免费观看| 国产一级片免费视频| 99精品视频在线观看免费播放| 欧美日韩高清不卡| 国产四区在线观看| 日韩精品视频在线观看一区二区三区| 日韩在线a电影| 欧美成人在线网站| 精品中文字幕在线播放 | 97精品国产91久久久久久| 国产精品久久久久无码av色戒| 中文字幕成人| 狠狠爱在线视频一区| 宅男噜噜99国产精品观看免费| 黄色一级a毛片| 麻豆精品久久精品色综合| 午夜欧美不卡精品aaaaa| 日本裸体美女视频| 网友自拍一区| 精品美女被调教视频大全网站| 免费日韩中文字幕| 黑人另类精品××××性爽| 国产精品久久三区| 久久99欧美| 精品国产一级片| 美腿丝袜一区二区三区| 欧洲美女免费图片一区| 成人欧美一区二区三区黑人一 | 日韩精品一区二区三区色偷偷| 亚洲视频一区在线播放| 玖玖视频精品| 97国产精品视频人人做人人爱| 中文字幕av播放| 精品日韩在线| 亚洲欧美另类在线观看| 人妻av一区二区| 这里视频有精品| 欧美一区二区在线视频| mm131国产精品| 国产超碰精品| 日韩欧美中文第一页| 国产日韩av网站| 日本三级韩国三级欧美三级| 亚洲欧美电影院| 夜夜春亚洲嫩草影视日日摸夜夜添夜| 深夜福利在线观看直播| 国产成人啪午夜精品网站男同| 成人a在线视频| 一级黄色大毛片| 免费看日韩精品| 国产精品成人观看视频国产奇米| www.色国产| 久久最新视频| 国产精品入口免费视| а中文在线天堂| 日韩av不卡一区二区| 国产精品久久久久久久av电影| 国产成人无码专区| 秋霞电影网一区二区| 国产成人av在线播放| 日本视频在线观看免费| 久久狠狠一本精品综合网| 国产精品99久久久久久人| 激情网站在线观看| 麻豆中文一区二区| 91网站免费观看| 亚洲第一黄色片| 99视频精品全部免费在线| 麻豆av一区二区| 国产最新视频在线观看| 国产精品电影一区二区三区| 青草全福视在线| 岛国毛片av在线| 色菇凉天天综合网| 中文字幕22页| 亚洲综合影院| 亚洲另类图片色| 国产日产在线观看| 欧美午夜精品| 2018国产精品视频| 中国女人一级一次看片| 国产精一区二区三区| 国产欧美一区二区三区不卡高清| 欧美巨乳在线| 最新国产成人在线观看| 草草视频在线免费观看| 三级成人在线| 欧美日韩视频在线观看一区二区三区 | 久久大胆人体| 色综合天天综合网国产成人综合天| 看欧美ab黄色大片视频免费| 免费看一区二区三区| 亚洲国产天堂网精品网站| 国产123在线| 韩日成人在线| 国产精品视频色| 成人爽a毛片一区二区| 国产午夜精品福利| 国产小视频免费| 日本美女一区| 日韩精品一区二区三区视频播放 | 亚洲精品a级片| 69影院欧美专区视频| 在线观看xxxx| 91亚洲精品乱码久久久久久蜜桃| 亚洲一区二区三区涩| av在线理伦电影| 欧美日本在线视频| 99久久国产精| 欧美黄色一区二区| 国产精品久久久久久影视| 亚洲国产成人一区二区 | 亚洲精品国产精品久久清纯直播| 亚洲不卡的av| 国产一区二区三区的电影 | 午夜精品在线观看| 91丨九色丨蝌蚪丨对白| 国产日韩欧美高清在线| 国产精品无码人妻一区二区在线| 欧洲精品久久久久毛片完整版| 亚洲国产天堂久久综合| 日韩欧美中文字幕视频| 蜜臀a∨国产成人精品| 久久青青草原一区二区| 国产精品蜜臀| 日韩美女在线视频 | 欧美日韩免费做爰大片| 亚洲五月六月丁香激情| 两性午夜免费视频| 欧美激情成人| 国产精品自产拍在线观看| 免费国产在线观看| 午夜欧美一区二区三区在线播放| 无码人妻少妇色欲av一区二区| 青草国产精品| 国产精品网红福利| 成人网视频在线观看| 日韩欧美国产一区二区| 中文字幕av观看| 99精品国产福利在线观看免费| 18成人在线| 成人a在线视频免费观看| 欧美情侣在线播放| 永久免费看片视频教学| 精彩视频一区二区三区| 中文字幕制服丝袜在线| 婷婷久久免费视频| 久久精品国产亚洲精品2020| 一区二区视频免费| 中文字幕在线观看不卡视频| 中文字幕av专区| 欧美大片aaaa| 亚洲aaa激情| 美女尤物在线视频| 欧美tk—视频vk| 亚欧洲精品在线视频| 成人ar影院免费观看视频| 免费看国产一级片| 女优一区二区三区| 国产精品视频26uuu| 欧美极品另类| 日韩精品一区二区三区swag| 国产精品18p| 91在线视频官网| 国产精品97在线| 精品国产一级毛片| 成人黄色免费在线观看| 香蕉成人app免费看片| 亚洲国产成人爱av在线播放| 久久青青草视频| 国产人久久人人人人爽| 国产理论在线播放| 欧美一区在线看| 精品国产乱码久久久久| 香蕉成人影院| 久久成人精品视频| 无码国产精品一区二区色情男同| 日韩欧美亚洲综合| 潘金莲一级黄色片| av在线播放一区二区三区| 日本男人操女人| 欧美在线三级| 欧美另类网站| 国产日韩欧美中文在线| 91国内精品久久| 国产精品ⅴa有声小说| 欧美一级生活片| 毛片在线免费视频| 亚洲天堂免费在线观看视频| 日韩Av无码精品| 国产一国产二国产三| 在线精品在线| 少妇免费毛片久久久久久久久| 成人国产一区| 久久久久久18| av男人的天堂在线| 欧美白人最猛性xxxxx69交| 中文字幕69页| 亚洲一区精品在线| 亚洲一区 欧美| 成人一区在线观看| 亚洲xxxx2d动漫1| 亚洲人体偷拍| 欧美亚洲视频一区| 九色精品91| 国产99午夜精品一区二区三区| a成人v在线| 韩国福利视频一区| 巨大荫蒂视频欧美另类大| 精品亚洲一区二区三区| 亚洲成熟女性毛茸茸| 欧美日韩精品一区二区三区| 五月婷婷色丁香| 亚洲国产一区视频| 潘金莲一级黄色片| 欧美激情一区二区三区蜜桃视频| 亚洲麻豆一区二区三区| 国产真实乱偷精品视频免| 无码人妻丰满熟妇区五十路百度| 亚洲成人免费| 午夜精品区一区二区三| 欧美禁忌电影| 韩国成人av| xxxx日韩| 99精品99久久久久久宅男| 亚洲一区有码| 国产精品久久久久久久久久久久久| 8x8ⅹ拨牐拨牐拨牐在线观看| 久久天天躁狠狠躁夜夜av| av免费在线一区二区三区| 精品一区二区三区四区在线| 亚洲av永久无码国产精品久久 | 国产精品色哟哟网站| 中文字幕一二三四区| 99精品视频中文字幕| 欧洲熟妇的性久久久久久| 国产精品一区久久久久| 天堂在线一区二区三区| 久久99九九99精品| 亚洲色图 在线视频| 日韩激情在线观看| 18岁视频在线观看| 日韩精品电影在线观看| 无遮挡又爽又刺激的视频| 首页国产欧美日韩丝袜| 精品久久一二三| 亚洲经典三级| a√天堂在线观看| 日韩午夜在线| 日日摸日日碰夜夜爽av| 亚洲免费综合| 丁香婷婷激情网| 免费在线看成人av| 中文字幕永久有效| 国产美女精品人人做人人爽| 日本高清免费观看| 国产成人av网站| 日韩少妇一区二区| www国产精品av| 欧美黄色一级生活片| 国产精品理论片| 一区二区三区四区五区| 亚洲精品va在线观看| 久久午夜无码鲁丝片| 午夜精品福利一区二区三区av| 国产视频91在线| 色婷婷综合激情| 在线视频 中文字幕| 欧美一区二区国产| 天天综合天天综合| 在线观看久久av| 黄页视频在线播放| 久久久久女教师免费一区| 中文av在线全新| 国产欧美日韩高清| 草莓视频一区二区三区| 欧美连裤袜在线视频| 婷婷亚洲五月| 夜夜添无码一区二区三区| 日韩av电影免费观看高清完整版| 五月天婷婷在线观看视频| k8久久久一区二区三区| 性猛交ⅹxxx富婆video| 亚洲男人都懂的| 性无码专区无码| 91精品黄色片免费大全| 手机在线不卡av| 日韩中文字幕在线免费观看| 国产精品一品| 国产日韩av在线播放| 国产精品色呦| 亚洲免费不卡| 99伊人成综合| www.com污| 91丨九色丨黑人外教| 中文字幕观看av| 精品福利免费观看| 97人妻一区二区精品免费视频 | 亚洲国产果冻传媒av在线观看| 国产免费成人在线视频| 国产真实乱人偷精品视频| 欧美视频一区在线观看| 日韩中文字幕观看| 久久天堂av综合合色| 都市激情综合| 国产精品成人一区二区三区| 色综合久久网| 日本熟妇人妻xxxxx| 国产99一区视频免费| av片在线免费看| 欧美日韩一区二区在线| 国产福利视频导航| 在线观看欧美日韩| 手机看片久久| 九色91视频| 黄色成人在线网站| 日本黄色www| 亚洲视频狠狠干| 最近中文字幕在线观看| 日韩av在线网站| 女人天堂av在线播放| 亚洲www永久成人夜色| 成人久久久久| 国产熟女高潮视频| 97se亚洲国产综合在线| 国产亚洲欧美久久久久| 91精品国产91综合久久蜜臀| av在线第一页| 国产成人在线亚洲欧美| 曰本一区二区三区视频| 久久久一本二本三本| 北条麻妃一区二区三区| 欧美成人国产精品高潮| 欧美一区二区视频在线观看| 亚洲成人三级| 国产精品视频久| 久久免费大视频| 欧美成人福利在线观看| 国产精品天美传媒| 国产黄色免费视频| 国产亚洲精品美女久久久| 日本电影欧美片| 视频一区视频二区视频三区视频四区国产| 亚洲欧美日韩国产综合精品二区| 在线观看国产网站| 无码av免费一区二区三区试看| 人妻一区二区三区四区| 69视频在线免费观看| 妖精视频一区二区三区免费观看| 欧美黄网站在线观看| 久久久久99精品一区| 国产情侣免费视频| 色伦专区97中文字幕| 亚洲综合伊人| 中文字幕日韩精品无码内射| 成人免费视频caoporn| 国产在线视频卡一卡二| 亚洲国产中文字幕在线观看| 色多多在线观看| 日本一区二区三区视频免费看 | 在线xxxxx| 黄色成人av在线| 国产私拍精品| 成人激情视频在线播放| 欧美视频一区| 中文字幕 亚洲一区| 在线观看不卡一区| 欧美18hd| 国模精品一区二区三区| 老牛影视一区二区三区| 亚洲一级二级片| 日韩精品一区二区三区视频在线观看 | 日本天堂一区| 欧美一级裸体视频| 亚洲欧美另类图片小说| 熟妇人妻系列aⅴ无码专区友真希| 热门国产精品亚洲第一区在线| 日韩精品免费一区二区三区| 在线观看网站黄| 欧美日韩在线另类| 伦xxxx在线| 精品蜜桃传媒| 免费视频最近日韩| 日本熟妇乱子伦xxxx| 最新日韩中文字幕| 成人自拍在线| 亚洲第一中文av| 亚洲一区二区三区四区不卡| 国产在线观看免费| 99精品国产一区二区| 欧美中文字幕| 在线免费日韩av| 一本色道久久综合狠狠躁篇怎么玩 | 欧美高清性xxxxhdvideosex| 激情丁香综合五月| 国产精品久免费的黄网站| 久久av资源网站| jiujiure精品视频播放| 黄色在线免费播放|