精品欧美一区二区三区在线观看 _久久久久国色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)

91av免费观看91av精品在线| 丁香花电影在线观看完整版| 黄色成人在线视频| 重囗味另类老妇506070| 天天综合天天做天天综合| 国产精品一区二区三区在线播放 | 深夜视频在线观看| 日本视频网站在线观看| 精品中文字幕一区二区三区| 国产视频在线观看一区二区三区| 九九热这里只有精品6| 激情视频综合网| 神马午夜一区二区| 欧美日韩第一区| 日韩视频一区在线观看| 亚洲视频在线二区| 亚洲国产精品无码久久久| 国产96在线亚洲| 亚洲精品乱码久久久久久| 国产欧美婷婷中文| 色一情一交一乱一区二区三区| av成人福利| 豆国产96在线|亚洲| 超薄丝袜一区二区| 最新av免费在线观看| 成年人视频在线免费观看| 麻豆9191精品国产| 亚洲精品中文字幕女同| 成人免费观看cn| 丰满大乳国产精品| 亚洲网站啪啪| 亚洲的天堂在线中文字幕| 成人毛片100部免费看| 国产丰满果冻videossex| 无码一区二区三区视频| 欧美精三区欧美精三区| 黄瓜视频免费观看在线观看www| 中文字幕在线网站| 爽成人777777婷婷| 91精品在线免费| 青青在线免费视频| 内射后入在线观看一区| 99综合精品| 亚洲欧美999| 天堂在线资源视频| 一级日本在线| 狠狠v欧美v日韩v亚洲ⅴ| 久久精品色欧美aⅴ一区二区| 在线能看的av网站| 18网站在线观看| 成人一区在线观看| 热久久这里只有精品| 山东少妇露脸刺激对白在线| 高清久久一区| 亚洲成人av电影| 欧美一区亚洲二区| 亚洲图片视频小说| 欧美午夜一区| 久久午夜a级毛片| 国精产品久拍自产在线网站| av自拍一区| 色国产综合视频| 一区二区精品免费视频| 草碰在线视频| 国产精品午夜在线| 国产精品亚洲综合| 亚洲精品国产精品乱码视色| 中文精品久久| 不卡av电影在线观看| 五月天av网站| 青青草原在线亚洲| 在线观看视频欧美| 日韩福利二区| 一级黄色大片免费观看| 日韩久久综合| 日韩欧美精品免费在线| 91在线视频九色| 人妻人人澡人人添人人爽| 精品国产精品| 欧美日韩情趣电影| 黄色免费网址大全| 国产精品久久久久av电视剧| 日本一区二区不卡视频| 奇米影视首页 狠狠色丁香婷婷久久综合 | 中文字幕色呦呦| 日本中文字幕在线视频| 国产精品色在线| 亚洲永久免费观看| 精品久久久无码中文字幕| 国产综合久久| 久久久久一本一区二区青青蜜月| 美国黄色a级片| 91精品国产经典在线观看| 1024成人网| 老司机精品福利在线观看| 国产又爽又黄免费软件| 久草在线在线精品观看| 欧美精品成人91久久久久久久| 亚洲自拍偷拍精品| 欧美综合影院| 欧美性生交xxxxxdddd| 久久久久久久久久久久久国产精品 | 久久国产精品免费视频 | 国产精品国产三级国产有无不卡 | av在线app| www.视频一区| 国产精品video| 国产稀缺真实呦乱在线| 欧美肥老太太性生活| 日韩色av导航| 日本免费一二三区| 久久一二三区| 欧美日韩第一视频| 探花视频在线观看| 在线欧美一区| 日韩高清av一区二区三区| 波多野结衣福利| 超碰在线亚洲| 亚洲天堂av在线免费观看| 日本高清免费在线视频| 三级成人在线| 欧美美女bb生活片| 亚洲AV无码久久精品国产一区| 日韩av中字| 丰满岳妇乱一区二区三区| 中国成人亚色综合网站| 色呦呦在线观看视频| 国产欧美精品一区二区三区四区| 精品亚洲欧美日韩| 亚洲乱码国产乱码精品精软件| 日韩高清欧美激情| 久久久久一本一区二区青青蜜月| 超碰在线观看91| 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲福利视频导航| 在线观看国产中文字幕| 久久久久久毛片免费看| 宅男噜噜噜66一区二区66| a天堂视频在线观看| 亚洲欧洲国产精品一区| 欧美一级国产精品| 日韩乱码人妻无码中文字幕久久| 国产精品玖玖玖在线资源| 亚洲欧美自拍一区| 青青操国产视频| 精品一区二区免费在线观看| 美女主播视频一区| 成人三级小说| 欧美日本乱大交xxxxx| 大黑人交xxx极品hd| 韩日在线一区| 成人免费淫片视频软件| 一区二区视频播放| 成人精品免费视频| 精品综合久久| 色呦呦在线看| 91精品中文字幕一区二区三区| 欧美日韩生活片| 久久久久久久久99精品大| 精品国模在线视频| 中文字幕观看视频| 久久影院电视剧免费观看| 成人一区二区在线| 黄a在线观看| 亚洲欧洲国产专区| 天天干天天爽天天射| 日韩精选在线| 久久久久亚洲精品| 亚洲国产精品久久久久久6q | 精品不卡在线| а√在线天堂官网| 一本大道av伊人久久综合| 亚洲中文字幕无码中文字| 伊人久久亚洲| 欧美多人爱爱视频网站| 国产 日韩 欧美 成人| 亚洲专区欧美专区| 国产精品一区二区久久久| 日本成人一区二区三区| 国产精品第一页第二页第三页| 国产v亚洲v天堂无码久久久| 奇米亚洲欧美| 国产精品美女久久久久av超清| 91影院在线播放| 专区另类欧美日韩| 亚洲欧美一区二区三区不卡| 99国产**精品****| 91在线播放国产| 福利在线视频网站| 亚洲精品一区二区三区影院| 免费成人深夜夜行p站| 亚洲欧美日韩国产综合精品二区| 欧美凹凸一区二区三区视频 | 专区另类欧美日韩| 亚洲av无码成人精品区| 一区二区日本视频| 五月天国产一区| a级网站在线播放| 日韩精品中文字幕一区| 国产成人精品亚洲男人的天堂| 99久久精品一区| 欧美性大战久久久久xxx| 四虎8848精品成人免费网站| 国产精品久久久久久久久久直播| 末成年女av片一区二区下载| 欧美一区二区视频在线观看2022| 国模私拍在线观看| 老司机亚洲精品| 中文字幕一区二区三区在线乱码| 91成人午夜| 国产成人鲁鲁免费视频a| av在线导航| 亚洲色图18p| a级片在线免费看| 欧美日韩激情视频| 久久久国产一级片| 成人精品视频.| 一道本在线免费视频| 亚洲无线视频| 国产a级片免费看| 啪啪激情综合网| 成人精品一区二区三区| 99riav视频在线观看| 中文字幕日韩高清| 三级网站在线看| 欧美日韩国产一级| 久草福利资源在线观看| 国产精品久久久久天堂| 国产伦精品一区二区三区精品| 日日骚欧美日韩| 2019中文字幕在线| 国产一卡二卡三卡| 亚洲视频1区2区| 欧美一级特黄aaa| 亚洲精选成人| 久久久久亚洲av无码专区喷水| 九九亚洲视频| caoporen国产精品| 99久久er| 欧美在线不卡区| www.久久ai| 久久亚洲精品网站| av大片在线播放| 欧美日韩一区视频| 欧美另类videoxo高潮| 免费成人在线视频观看| 久艹视频在线免费观看| 久久精品青草| 亚洲一区三区视频在线观看| 精品成av人一区二区三区| 国产免费高清一区| 小早川怜子影音先锋在线观看| 美乳少妇欧美精品| 91涩漫在线观看| 日韩电影免费观看中文字幕| 亚洲第一免费视频| 日韩欧美一二三| 国产女人18毛片水18精| 一个色综合av| 黄色av网址在线观看| 老司机亚洲精品| 男人和女人啪啪网站| 欧美影视一区| 亚洲一区二区免费| 超碰aⅴ人人做人人爽欧美| 亚洲午夜性刺激影院| 国产精品亚洲欧美在线播放| 日韩欧美在线视频免费观看| 日韩激情一区二区三区| 亚洲综合网站在线观看| 国产性70yerg老太| 亚洲主播在线播放| 国产稀缺真实呦乱在线| 午夜精品久久久久久久99樱桃| 午夜69成人做爰视频| 亚洲人精品午夜| avtt天堂在线| 亚洲永久精品国产| 国产在线观看免费av| 亚洲成人av一区二区| 天天操天天操天天操天天| 黑人精品xxx一区一二区| 久久国产视频精品| 欧美日韩视频在线一区二区| 97人妻人人澡人人爽人人精品| 宅男在线国产精品| 亚洲爱情岛论坛永久| 亚洲国产精品久久| 理论视频在线| 在线看日韩av| 97超碰资源站在线观看| 欧美另类高清videos| а√在线中文在线新版| 国产福利视频一区二区| 久久免费影院| 999视频在线免费观看| 日韩欧美中文在线观看| http;//www.99re视频| 美女福利一区| 色播亚洲视频在线观看| 在线精品国产| 又粗又黑又大的吊av| 日本亚洲最大的色成网站www| 色91精品久久久久久久久| 久国产精品韩国三级视频| 中文字幕 日本| 国产精品视频第一区| 久久久久久国产精品免费播放| 欧美日韩亚洲视频| 中文字幕一区二区三区四区免费看 | 羞羞污视频在线观看| 91精品国产99| 欧美91在线|欧美| 国产精品国产一区二区| 欧美日韩激情| 宅男噜噜99国产精品观看免费| 99视频一区| 天堂在线一区二区三区| 99久久精品久久久久久清纯| 午夜国产福利视频| 精品动漫一区二区三区| 91麻豆成人精品国产| 亚洲欧美综合图区| 成人在线视频亚洲| 欧美一区二区三区四区在线| 国产一区二区三区| 国产二区不卡| 自拍日韩欧美| 少妇激情一区二区三区| 成人高清视频在线观看| 久久久久人妻一区精品色| 五月天一区二区| 国产精品无码久久久久成人app| 精品国产乱码久久| 污污片在线免费视频| 国产精自产拍久久久久久| 亚州av日韩av| 丰满少妇大力进入| 国产一区二区三区黄视频| 久久久无码人妻精品一区| 一级女性全黄久久生活片免费| 91av久久久| 国产亚洲人成网站在线观看| 在线看片福利| 91久久久国产精品| 91精品婷婷色在线观看| 欧美婷婷精品激情| 久久久久久麻豆| 西西44rtwww国产精品| 欧美xxx久久| 黄色大片在线播放| 国产999精品视频| 亚洲区小说区图片区qvod| 久久久久久免费看| 国产99久久久精品| 欧美日韩人妻精品一区二区三区| 欧美高清你懂得| 黄色大片在线播放| 91热福利电影| 中文精品久久| 色综合久久久无码中文字幕波多| 亚洲天天做日日做天天谢日日欢| 一本一道精品欧美中文字幕| 亚洲色图综合久久| 亚洲高清黄色| 日韩中文字幕一区| 日韩中文字幕91| 日韩不卡av在线| 欧美视频一区二区三区在线观看| 在线观看a视频| 国产精品视频一区二区三区四| 大色综合视频网站在线播放| 一区二区三区四区欧美日韩| 日韩激情中文字幕| 亚洲av熟女国产一区二区性色| 在线亚洲一区二区| 国产高清免费av在线| 成人免费网站在线| 欧美日本久久| 国产视频久久久久久| 欧美午夜精品久久久久久浪潮| 男同在线观看| 国产精品女主播视频| 欧美国产高潮xxxx1819| 中文字幕a在线观看| 色哟哟日韩精品| аⅴ资源新版在线天堂| 91精品久久久久久久久青青| 久久精品亚洲人成影院 | 欧美成人精品高清在线播放| av丝袜在线| 欧美一区1区三区3区公司 | 国产偷国产偷亚洲高清人白洁| 亚洲怡红院av| 欧美黑人性视频| 天堂网av成人| 日日噜噜夜夜狠狠| 一区二区激情小说| 亚洲日本中文字幕在线| 国产精品美乳一区二区免费|