mqtt协议官方文档

来源:互联网 发布:源码包apache 编辑:程序博客网 时间:2024/06/05 11:12

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

//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.