simps / mqtt

🕹 MQTT Protocol Analysis and Coroutine Client for PHP. Support for 3.1, 3.1.1 and 5.0 versions of the MQTT protocol.
https://mqtt.simps.io
Apache License 2.0
358 stars 58 forks source link

没有针对QoS 为1以及QoS为2的处理逻辑 #4

Closed wanghengwen closed 3 years ago

wanghengwen commented 3 years ago

在项目中实际使用发现该问题,会导致QoS为1的topic服务端不停重复发送消息,例程中也没有提现

sy-records commented 3 years ago

这个需要自己按照协议在业务端实现。 QoS 1需要回复PUBACK QoS 2需要PUBREC、PUBREL、PUBCOMP