mqtt 变为乱码 接受16进制字节流_MQTT协议详解,非常易懂

本文详细解析了MQTT协议,它是一种轻量级的发布/订阅消息传输协议,适用于远程设备连接和低带宽场景。内容包括协议的适用场景、特点,以及PHP环境下MQTT代理程序Mosquitto的安装和配置。此外,还介绍了MQTT协议的构造,如固定头部、可变头部和消息体,以及关键字段如MessageType、DUP flag、Qos和Retain的含义。
摘要由CSDN通过智能技术生成

协议地址:http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html

当然也有PDF版的,百度一下,不过个人感觉不是官网上的字体和排版最舒服。

那么这个协议是用做什么或有什么特色呢?下面是mqtt.org上的首段介绍:

It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is

required and/or network bandwidth is at a premium. For example, it has been used in sensors communicating to a broker via satellite link, over occasional dial-up connections with healthcare providers, and in a range of home automation and small device scenarios.

It is also ideal for mobile applications because of its small size, low power usage, minimised data packets, and efficient distribution of information to one or many receivers

MQTT是轻量级基于代理的发布/订阅的消息传输协议,它可以通过很少的代码和带宽和远程设备连接。例如通过卫星和代理连接,通过拨号和医疗保健提供者连接,以及在一些自动化或小型设备上,而

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值