Open
Description
When the client subscribes to multiple topics with a wild card and receives multiple retained messages, the callback is only called once. The data is somehow in the data buffer, but I expect that the callback function is called for every message.
I think the problem is in line 376 in mqtt.c:
if (client->mqtt_state.message_length_read >= client->mqtt_state.message_length)
this if statement is probably always true and so the loop stops after one run even when there are more messages left in the buffer
Metadata
Metadata
Assignees
Labels
No labels