Closed mlmarius closed 2 years ago
Not really sure what you mean; the MQTT v3 PUBLISH header does not include anything like what you are looking for (any such data needs to be in the message or topic). MQTT v5 introduced properties, one of which is "Correlation Data", but this library only supports MQTT v3.
Please note that the readme suggests the best places to ask questions like this. This section is not really intended for general requests for help (a lot more people will see your question at stack overflow).
thanks
Hi! How can I add headers when publishing a message? I would like to add a correlation id for example and maybe also some custom headers. I wasn't able to find an example.