I currently develop a cusom node for mqtt communication according to the homie convention.
Devices using this "protocol" propagate there capabilities by a bunch of retained messages (in my setup over 450). It is the nature of mqtt as far as I know that you can't determine the sequence when the messages arrive.
I`m looking for a way to determine when all retained messages arrived after subscribing to the base topic to do a validation if there are any errors in these messages. I currently do a validation for every message arriving but this only gives me positive conformation (when i.e. a branch is configured completely). Negative confirmation is difficult as the next message (of the remaining retained messages) can be the one which is missing.
Is there an elegant way to find out if all retained messages are received form a mqtt broker (I use msquitto)?
Thank you for your help.