Using esp_mqtt_client_publish vs esp_mqtt_client_enqueue

MichaelS
Posts: 46
Joined: Mon Jul 08, 2024 12:08 am

Using esp_mqtt_client_publish vs esp_mqtt_client_enqueue

Postby MichaelS » Sun May 18, 2025 4:22 am

I can use esp_mqtt_client_publish and have message straight away but I like the idea of the MQTT library queuing and dequeuing messages so it doesn't overload itself.

The API for esp_mqtt_client_enqueue states "Enqueue a message to the outbox, to be sent later"

I am finding they are dequeued 1 second later even when the system is idle.

Is there any way to configure the normal dequeue time?

Who is online

Users browsing this forum: PerplexityBot, PetalBot, Semrush [Bot] and 1 guest