simple-swoole / simps

🚀 A simple, lightweight and high-performance PHP coroutine framework.
https://simps.io
Apache License 2.0
471 stars 48 forks source link

mqtt发送QOS等于2的收到消息要自己回复服务端消息收到吗 不回复会重复收到 #23

Closed wuxian12 closed 3 years ago

wuxian12 commented 3 years ago

mqtt收到消息要自己处理后面的逻辑吗,例如消息qos是1的话,要自己按照协议通知服务器删除消息,qos是2一样吗,

sy-records commented 3 years ago

一样的,按照协议处理。示例只提供了qos1的。

wuxian12 commented 3 years ago

实例中没看到qos1收到消息回复服务端删除消息的代码,

sy-records commented 3 years ago

https://github.com/simps/mqtt/tree/master/examples