mqtt协议官方文档

https://mcxiaoke.gitbooks.io/mqtt-cn/content/mqtt/0301-CONNECT.html
http://blog.csdn.net/benhuo931115/article/details/51254560
http://mosquitto.org/api/files/mosquitto-h.html
http://mosquitto.org/man/libmosquitto-3.html
源码:链接:https://pan.baidu.com/s/1qYWjjGS 密码:c2am
https://www.2cto.com/kf/201709/677758.html

//0“至多一次”,消息发布完全依赖底层 TCP/IP 网络。会发生消息丢失或重复。这一级别可用于如下情况,环境传感器数据,丢失一次读记录无所谓,因为不久后还会有第二次发送。
//1“至少一次”,确保消息到达,但消息重复可能会发生。
//2“只有一次”,确保消息到达一次。这一级别可用于如下情况,在计费系统中,消息重复或丢失会导致不正确的结果。
//0: The broker/client will deliver the message once, with no confirmation.
//1: The broker/client will deliver the message at least once, with confirmation required.
//2: The broker/client will deliver the message exactly once by using a four step handshake.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值