MQTT client msg_id is always 0?
MQTT client msg_id is always 0?
What is the use of event->msg_id in the exposed mqtt event loop? I have tested multiple messages in a row and it always seems to be 0.. Is this the expected behaviour? I was thinking it might be some kind of counter that increases with every message sent?
Re: MQTT client msg_id is always 0?
As you can read here https://docs.espressif.com/projects/esp ... /mqtt.html, if you set a QoS = 0, the message ID will be always 0. Can you confirm you are using a Qos = 0?
message_id of the publish message (for QoS 0 message_id will always be zero) on success. -1 on failure.
Filippo
Re: MQTT client msg_id is always 0?
No I'm actually using qos 1. However, in any case the msg_id is not what I expected then.
Who is online
Users browsing this forum: Baidu [Spider], Google Adsense [Bot], MicroController and 78 guests