256dpi / arduino-mqtt

MQTT library for Arduino
MIT License
1.01k stars 232 forks source link

Timeout for client.begin #262

Closed CptHolzschnauz closed 1 year ago

CptHolzschnauz commented 3 years ago

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

256dpi commented 3 years ago

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

CptHolzschnauz commented 3 years ago

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);

256dpi commented 1 year ago

Closing as stale. Please reopen if the issue persists.

CptHolzschnauz commented 1 year ago

I forgot, thanks for housekeeping...