当前位置:网站首页>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 .



边栏推荐
- 剑指 Offer II 035. 最小时间差
- How did I raise my salary to 20k in three years?
- PLSQL storage function SQL programming
- SDN系统方法 | 10. SDN的未来
- 二十九-使用RealSenseD435进行ORBSLAM2实时三维重建
- Batch --07--- breakpoint lifting
- The second round of Yunnan Cyberspace Security competition in May 2021
- Pytorch official document learning record
- 2022云的世界会更好吗
- WPF开发随笔收录-心电图曲线绘制
猜你喜欢

学习太极创客 — MQTT(二)MQTT 基本原理

MySQL 用 limit 为什么会影响性能?

Why are there few embedded system designers in the soft test?

Good fat man takes you to learn Flink series -flink source code analysis episode I standalone startup script analysis

Create a new ar fashion experience with cheese and sugar beans

Wechat official account server configuration
![[untitled]](/img/14/ec21953b76a6a7bb1e692e08001571.png)
[untitled]

好胖子带你学Flink系列-Flink源码剖析第一集Standalone启动脚本分析

SnakeYAML配置文件解析器

App测试和Web测试的区别
随机推荐
1-8file sharing in VMWare
The role of the project manager in the project
Redis distributed lock collation
Sword finger offer 39 Numbers that occur more than half the time in the array
Using pywebio testing, novice testers can also make their own testing tools
Problems encountered in using MySQL
3年,我是如何涨薪到20k?
STM32 hardware error hardfault_ Handler processing method
ES6 knowledge points
Kalman time series prediction
巴比特 | 元宇宙每日荐读:三位手握“价值千万”藏品的玩家,揭秘数字藏品市场“三大套路”...
redis 分布式锁整理
项目经理在项目中起到的作用
Effects and laws
Best practices for data relocation: using CDM to relocate offline Mysql to DWS
Why does MySQL limit affect performance?
js禁止浏览器默认事件
tasklet api使用
【微服务|Sentinel】流控规则概述|针对来源|流控模式详解<直接 关联 链路>
Remote terminal control artifact - mobaxterm