AsyncMqttClient - last will breaks connection

Hi,

I try to setup a On-/Offline topic with the AsyncMqttClient library and last will function. It seems that there is a bug as if I call setWill to add the last will the client will not connect anymore to the broker.

Does anybody knows a fix for it? I read some issues on the Github page of the library and it seems known and not fixed anymore perhaps.

Many thanks for any tip,
Nils

Solved this by setting the topic as a static variable. It will be stored as a pointer and not copied to the object. So the topic was empty on connecting to the server...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.