arduino-mqtt icon indicating copy to clipboard operation
arduino-mqtt copied to clipboard

subscribe fails HARD

Open hurricaneJoef opened this issue 1 year ago • 2 comments

I noticed you have it set up if the mqtt client fails when subscribing to a topic (like a topic already subscribed to) it closes the connection to the server.

is this intentional? if so can an alternative function be added to not close in this way?

(I have already fixed after a long effort server side this so I can submit a pr if it would be wanted)

hurricaneJoef avatar Jun 23 '24 03:06 hurricaneJoef

I am getting this issue also...

wagfeliz avatar Aug 14 '24 02:08 wagfeliz

Yes, until now we followed a fail hard mantra when it comes to protocol level errors. I'm happy to review pull requests that soften that a bit for more advanced use cases. May we can add a client.setSoftFail(bool) method that sets an internal variable that does not close the connection on such errors?

256dpi avatar Aug 30 '24 16:08 256dpi