Closed JeffreyThijs closed 10 months ago
Thanks for sharing this. Can you post some more details (e.g. snippet) about the problem?
Thanks for sharing this. Can you post some more details (e.g. snippet) about the problem?
Here is a reproducer:
@tsegismont, i think i made all changes you suggested.
@JeffreyThijs @ppatierno I've made some updates and merged the PR
Thank you both!
I will take care of backporting to 4.x
Motivation:
The payload of the will message now requires to be stored in the
MqttClientOptions
as a String and is afterwards converted to byte[] assuming UTF-8 in theMqttClientImpl
when connecting. This is different from the publish methods where aBuffer
is required. Additionally, when the will message payload is binary (e.g. in SparkplugB) converting this to a string feels wrong and might lead to unnecessary conversion issues.