Closed PaulVdBergh closed 5 years ago
Hi Paul,
related to the line if (client->mqtt_state.message_length_read >= client->mqtt_state.message_length)
:
idf
branch, but will be merged to master once IDFv3.2 is released.Can you please check if your issue persists when switching to the latest IDF? (no need to add esp-mqtt)?
Thank you, David
Hi everybody,
I have the same issue, even with IDFv3.3.
Maybe the difference is that I subscribe calling the esp_mqtt_client_subscribe
function individually for each topic, so, as a workaround, what I do is that I use esp_mqtt_client_config_t
's user_context
with boolean variables, and, basically :
It requires more code and I have to handle the case when there is no retained message in the first topic (otherwise, I will never subscribe to the second topic), but at least it works. ;-)
Paul
Please have a look at my question at esp32.com
Thanks, Paul.