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



边栏推荐
- Next.js 热更新 Markdown 文件变更
- Create a new ar fashion experience with cheese and sugar beans
- N皇后问题
- Problems encountered in using MySQL
- Redis Series - Overview day1 - 1
- 微信公众号服务器配置
- 内卷?泡沫?变革?十个问题直击“元宇宙”核心困惑丨《问Ta-王雷元宇宙时间》精华实录...
- Simple dialogue system -- implement transformer by yourself
- Differences between et al and etc
- mood
猜你喜欢

A complete collection of APP testing tools. It's enough to collect this one

Protocol and hierarchy

Pytorch official document learning record

WPF开发随笔收录-心电图曲线绘制

FreeRTOS内核时钟不对的问题解决

Sword finger offer 50 First character that appears only once

Difference between app test and web test

Redis系列——概述day1-1

PLSQL storage function SQL programming

LSF如何看job预留slot是否合理?
随机推荐
Kotlin
剑指 Offer 50. 第一个只出现一次的字符
"Podcast with relish" 386 Yuan Tang Hua Yuan Shi: who is not a "Mr. White character"?
Comprehensive optimization of the six topics, Alibaba performance optimization booklet open source, leading you to the ultimate performance
MySQL 用 limit 为什么会影响性能?
2022云的世界会更好吗
How does social e-commerce operate and promote?
知道这些面试技巧,让你的测试求职少走弯路
[Jianzhi offer II 091. painting the house]
App测试工具大全,收藏这篇就够了
心情
记一次基于PHP学生管理系统的开发
[proficient in high concurrency] deeply understand the basis of C language and C language under assembly
ES6知识点
internship:Swagger下注解的涉及 接口的提供
学习太极创客 — MQTT(二)MQTT 基本原理
js禁止浏览器默认事件
Batch --07--- breakpoint lifting
try with resource
PLSQL 存储函数SQL编程