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



边栏推荐
- 这些老系统代码,是猪写的么?
- 2022-06-17 advanced network engineering (IX) is-is- principle, NSAP, net, area division, network type, and overhead value
- Redis系列——概述day1-1
- Redis 的PSYNC命令
- Kalman filter meets deep learning: papers on Kalman filter and deep learning
- Why are there few embedded system designers in the soft test?
- Singleton mode application
- Uncover ges super large scale graph computing engine hyg: Graph Segmentation
- The second round of Yunnan Cyberspace Security competition in May 2021
- ddia数据密集型应用系统设计 整理
猜你喜欢

tensorflow 旧版本

2022-06-17 advanced network engineering (IX) is-is- principle, NSAP, net, area division, network type, and overhead value

SnakeYAML配置文件解析器

Xshell connecting VMware virtual machines

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

Difference between app test and web test

XShell连接VMWare虚拟机

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

Wireshark network card cannot be found or does not display the problem

A complete collection of APP testing tools. It's enough to collect this one
随机推荐
What are the steps for launching the mobile ERP system? It's important to keep it tight
Which is better for intermediate and advanced soft exam?
2022云的世界会更好吗
tasklet api使用
XShell连接VMWare虚拟机
数学建模——非线性规划
Create a new ar fashion experience with cheese and sugar beans
知道这些面试技巧,让你的测试求职少走弯路
芝士糖豆打造AR潮玩新体验
这些老系统代码,是猪写的么?
MySQL 用 limit 为什么会影响性能?
vscode插件自用
Sword finger offer 39 Numbers that occur more than half the time in the array
Sword finger offer II 012 The sum of left and right subarrays is equal
SDN系统方法 | 10. SDN的未来
使用PyWebIO测试,刚入门的测试员也能做出自己的测试工具
3. conditional probability and independence
Cache architecture scheme of ten million level shopping cart system
Differences between et al and etc
PLSQL 存储函数SQL编程