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

Timeout for client.begin

Open CptHolzschnauz opened this issue 4 years ago • 2 comments

When the broker is not avaiable it seems there is no timeout function and the code hangs with this call!?!

CptHolzschnauz avatar Jul 30 '21 05:07 CptHolzschnauz

There is a "command timeout". However it also depends on the modem and how it implemented timeouts.

256dpi avatar Jul 30 '21 06:07 256dpi

There is a "command timeout".

But this is for the established connection? You mean this? void setKeepAlive(int keepAlive); void setCleanSession(bool cleanSession); void setTimeout(int timeout); void setOptions(int keepAlive, bool cleanSession, int timeout);

CptHolzschnauz avatar Aug 05 '21 11:08 CptHolzschnauz

Closing as stale. Please reopen if the issue persists.

256dpi avatar Feb 04 '23 10:02 256dpi

I forgot, thanks for housekeeping...

CptHolzschnauz avatar Feb 04 '23 10:02 CptHolzschnauz