当前位置:网站首页>物联网协议的王者:MQTT
物联网协议的王者:MQTT
2022-06-26 16:54:00 【InfoQ】
什么是MQTT?
- 英文全称:Message Quueuing Telemetry Transport
- 中文术语:消息队列遥测传输协议
- 一种适用于物联网设备之间通信的简单消息传递协议
- 专为带宽受限的设备而设计
- 采用发布/订阅通信模式
- 用于机器对机器( M2M ) 通信
- MQTT 协议基于OASIS 标准下的TCP/IP
- 被广泛用于无线网络通信,具有广泛的覆盖面,涵盖医疗保健、汽车和其他使用物联网应用的行业。

MQTT的历史
- 简单的实现
- 服务质量数据交付
- 轻量级和带宽效率
- 数据不可知
- 持续的会话

MQTT的优势

简单

可靠

双向消息传递
大规模消息传递
MQTT工作原理
MQTT架构
- 客户端
- 代理

发布/订阅

消息

主题





- 发布者在
article/technology/network主题发布OSPF相关的文章
- 订阅者订阅了主题
article/technology/network
- 发布者在主题
article/technology/network上有新消息发出的时候,订阅者都能订阅到。
Broker 经纪人

MQTT订阅
订阅通配符


- 文章/娱乐/网络
- 文章/科技/网络
- 文章/三农/网络
- 文章/新闻/网络

- 文章/娱乐/网络
- 文章/科技/java
- 文章/三农/美食
- 文章/新闻/航天
服务质量 QoS
- QoS 0(最多一次):客户端的消息只发送一次,不管它是否已经到达代理。
- QoS 1(至少一次):客户端的消息被一遍又一遍地发送,直到代理以确认接收来响应,这可能导致消息多次到达代理。
- QoS 2(恰好一次):客户端发送一次消息,同时确保它已到达代理,QoS 2 通信需要比服务质量 0 或 1 更多的带宽。
MQTT几个重要的网站
- mqtt官网:
https://mqtt.org/

- emqx官网:
https://www.emqx.com/

总结
边栏推荐
- 5g is not flat and 6G is restarted. China leads wireless communication. What is the biggest advantage of 6G?
- Memory partition model
- Day10 daily 3 questions (1): sum gradually to get the minimum value of positive numbers
- Overall context of concurrent programming
- proxy
- NFT 交易市场社区所有化势不可挡
- Constructors and Destructors
- Day10 daily 3 questions (2): count the number of the largest groups
- Microservice architecture practice: user login and account switching design, order query design of the mall
- Ndroid development from introduction to mastery Chapter 2: view and ViewGroup
猜你喜欢

20: Chapter 3: develop the pass service: 3: get through the redis server in the program; (it only connects with the redis server and does not involve specific business development)

NFT 交易市场社区所有化势不可挡

Teach you to learn dapr - 8 binding

Concurrent thread safety

Army chat -- registration of Registration Center

直播预告|程序员进击,如何提升研发效能?6月21日晚视频号、B站同步直播,不见不散!

Web3 decentralized storage ecological landscape

关于FlowUs这一款国民好笔记

【推荐系统学习】推荐系统的技术栈
![[recommendation system learning] technology stack of recommendation system](/img/ff/afc6f4b0997cfcb9e01ffbebf2a872.png)
[recommendation system learning] technology stack of recommendation system
随机推荐
Introduction to distributed cache / cache cluster
Fgetc() reads content from file
Quantitative contract system development analysis case - detailed explanation of contract quantitative system development scheme
Romance of the Three Kingdoms: responsibility chain model
Leetcode topic [array] -283- move zero
Teach you to learn dapr - 8 binding
No manual prior is required! HKU & Tongji & lunarai & Kuangshi proposed self supervised visual representation learning based on semantic grouping, which significantly improved the tasks of target dete
JUnit unit test
建立自己的网站(16)
Count the number of words in a line of string and take it as the return value of the function
【推荐系统学习】推荐系统的技术栈
Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)
Cache breakdown! Don't even know how to write code???
Army chat -- registration of Registration Center
Gui+sqlserver examination system
Here comes the hero League full skin Downloader
Discover K8E: minimalist kubernetes distribution
Which low code platform is more friendly to Xiaobai? Here comes the professional evaluation!
y=1/100*100+1/200*200+1/300*300+.....+ 1/m*m
SIGIR 2022 | 港大等提出超图对比学习在推荐系统中的应用