wialon / gmqtt

Python MQTT v5.0 async client
MIT License
400 stars 52 forks source link

No PubBack Message #141

Open bambachas opened 2 years ago

bambachas commented 2 years ago

i have an application with google-iot-core Google iot-core allows you to have A gateway with multiple devices The gateway is the Client. To be able the multiples devices to communicate thought gateway with the google-broker its need to publish a specific attach message to google-iot-core broker, after that you can subscribe as device in the broker The problem is gmqtt doesnt return PubBack message when i publish the attach message so i dont know if the attach has been complete succesfull to continue with the logic

KeNaCo commented 1 year ago

Hi. I'm not a maintainer or expert on the library, but I see PUBACK messages in my project logs. According to my understanding, PUBACK is a notification that the message was delivered. This is controlled by the qos parameter. What is your qos value? It should be 1 - at least one delivery or 2 - exactly one delivery.