8000 increase timeout to 2000ms · robokoding/arduinoWebSockets@1682490 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1682490

Browse files
committed
increase timeout to 2000ms
sync TCP is default
1 parent 632ee13 commit 1682490

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/WebSockets.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define WEBSOCKETS_MAX_DATA_SIZE (1024)
4343
#endif
4444

45-
#define WEBSOCKETS_TCP_TIMEOUT (1500)
45+
#define WEBSOCKETS_TCP_TIMEOUT (2000)
4646

4747
#define NETWORK_ESP8266_ASYNC (0)
4848
#define NETWORK_ESP8266 (1)
@@ -54,8 +54,8 @@
5454

5555
// select Network type based
5656
#if defined(ESP8266) || defined(ESP31B)
57-
//#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266
58-
#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266_ASYNC
57+
#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266
58+
//#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266_ASYNC
5959
#else
6060
#define WEBSOCKETS_NETWORK_TYPE NETWORK_W5100
6161
#endif

0 commit comments

Comments
 (0)
0