-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT outbox dequeuing mechanism for esp_mqtt_client_enqueue (IDFGH-13400) #283
Comments
Hi @Teesmo we always push items to the end. So it is always FIFO, but with some different criteria depending on scenario. Is this behavior affecting your system in some sense? |
I need a strictly FIFO pipeline because I need data transferred in the order it was extracted from sensors (time-series is crucial here). I need this data not only for time-series but also in order processing, as I have external systems that interact with this system, and can alter the behaviour of this system. |
@Teesmo could you add more information like: QoS of messages, are you using publish or enqueue function? |
I am using the enqueue function, QoS 1 |
@Teesmo thanks for clarification.
From the mqtt client we are publishing in the order that the messages are created, if the broker didn't answer with the control message before the timeout we retry. |
How does esp_mqtt_client_enqueue dequeue? Is it a FIFO mechanism or a LIFO (or hybrid), I have noticed instances where the most recent data in the queue is published first, or is in conjuction with the (FIFO) queue(i.e temporarily interrupts FIFO dequeuing).
The text was updated successfully, but these errors were encountered: