Skip to content

Commit 0cac574

Browse files
committed
Increase connecting interval for ESP32 to allow reconnection
1 parent 99dd1a4 commit 0cac574

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Arduino_ConnectionHandler.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ typedef void (*OnNetworkEventCallback)();
155155
static unsigned int const CHECK_INTERVAL_TABLE[] =
156156
{
157157
/* INIT */ 100,
158+
#if defined(ARDUINO_ARCH_ESP32)
159+
/* CONNECTING */ 2000,
160+
#else
158161
/* CONNECTING */ 500,
162+
#endif
159163
/* CONNECTED */ 10000,
160164
/* DISCONNECTING */ 100,
161165
/* DISCONNECTED */ 1000,

0 commit comments

Comments
 (0)