256dpi / arduino-mqtt

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

Stop client.loop after 30 seconds #280

Closed carminelau closed 1 year ago

carminelau commented 2 years ago

Hi, I wanted to know if it was possible to stop the client.loop after 30 seconds of listening.

256dpi commented 1 year ago

You can change the general command timeout with client.setTimeout(). However, the behaviour also depends on the underlying modem to support timeouts properly.

Closing as stale, please reopen if issue persists.