当前位置:网站首页>Learning Tai Chi maker mqtt (II) basic principles of mqtt
Learning Tai Chi maker mqtt (II) basic principles of mqtt
2022-06-25 17:14:00 【xuechanba】
Video tutorial Links : https://www.bilibili.com/video/BV1pv411r7Cv?spm_id_from=333.999.0.0&vd_source=b91967c499b23106586d7aa35af46413
Materials tutorial link : http://www.taichi-maker.com/homepage/esp8266-nodemcu-iot/iot-tuttorial/mqtt-tutorial/2-mqtt-basics/
stay MQTT Protocol communication in progress , There are two most important roles . They are server and client respectively . First of all, let's have a preliminary understanding of them .



below , Look at a scene like this .
Some people will ask why the car does not directly send information to the mobile phone or computer ?
1、 This is because MQTT The protocol is usually applied to the Internet of things , One of the great differences between the Internet of things and the Internet is that the Internet of things is not as stable as the Internet , Maybe the Internet of things is composed of the data network of mobile phones , therefore , If the cell phone signal is bad , The network is unstable , When the network connection is unstable , If you let clients send messages directly to each other , Then the data information will be lost . therefore , It adds MQTT The server . This MQTT It is equivalent to a transfer station .
2、 Usually MQTT client ( The car in the figure above ) The loaded on is responsible for sending MQTT The computing power of the information IOT module is not very strong , Besides , In the application scenario in the above figure , Only two clients receive information about the car speed , But in practice , There may be thousands or more clients that will receive this message , therefore , under these circumstances , If you use this IOT module , It is difficult to achieve such strong computing power . So it increases MQTT The server , Its computing power is much greater than that of the IOT module of the actual client .

It is worth noting that ,MQTT When the client communicates , Often the role is not single . It can be used as both information publisher and information subscriber .



边栏推荐
猜你喜欢

Paper notes: lbcf: a large scale budget constrained causal forest algorithm

WPF development essays Collection - ECG curve drawing

Sword finger offer 39 Numbers that occur more than half the time in the array

Babbitt yuan universe daily recommendation: three players holding "tens of millions" of collections have revealed the "three routines" of the digital collection market

Xshell connecting VMware virtual machines

【微服务|Sentinel】流控规则概述|针对来源|流控模式详解<直接 关联 链路>

学习太极创客 — MQTT(一)MQTT 是什么

XXIX - orbslam2 real-time 3D reconstruction using realsensed435

Uncover ges super large scale graph computing engine hyg: Graph Segmentation

微信公众号服务器配置
随机推荐
数学建模——整数规划
On Web 3.0
How do components communicate
Automatic submission for the next education day
学习太极创客 — MQTT(二)MQTT 基本原理
Difference between app test and web test
Wireshark network card cannot be found or does not display the problem
好胖子带你学Flink系列-Flink源码剖析第一集Standalone启动脚本分析
JVM內存結構
从业一年,我是如何涨薪13K+?
Simple dialogue system -- implement transformer by yourself
批量--07---断点重提
Good fat man takes you to learn Flink series -flink source code analysis episode I standalone startup script analysis
Next.js 热更新 Markdown 文件变更
Mac PHP multi version management and swoole extension installation
App测试工具大全,收藏这篇就够了
Tasklet API usage
【微服务|Sentinel】流控规则概述|针对来源|流控模式详解<直接 关联 链路>
LSF如何看job预留slot是否合理?
pytorch官方文档学习记录