Open
Description
Feature request
I'd like to be able to configure the retry delay for WiFi reconnections in WiFiConnectionHandler
.
Currently, the value is hardcoded in CHECK_INTERVAL_TABLE
as 500ms:
Arduino_ConnectionHandler/src/ConnectionHandlerDefinitions.h
Lines 191 to 204 in 432961a
This causes excessive retry attempts and floods the serial output when the WiFi is unavailable.
Proposed solution
It would be great to:
- Allow user override of
CHECK_INTERVAL_TABLE
, or - Provide a setter method like
setReconnectInterval(NetworkConnectionState state, uint32_t delay_ms)
.
Context
I'm working on an Arduino IoT Cloud project using Opta and want to increase the reconnection interval to 10 seconds to avoid WiFi flooding.
Thanks for your work!