From 13aec9542affab9aa3dceba72e87160f46a9b2c8 Mon Sep 17 00:00:00 2001 From: Juraj Andrassy Date: Fri, 15 Dec 2023 22:35:13 +0100 Subject: [PATCH] CNetIf - reasonable count of MAX_CLIENTS for lwipServer MEMP_NUM_TCP_PCB is 5 --- libraries/lwIpWrapper/src/CNetIf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/lwIpWrapper/src/CNetIf.h b/libraries/lwIpWrapper/src/CNetIf.h index e8b91353..4e9ea6fe 100644 --- a/libraries/lwIpWrapper/src/CNetIf.h +++ b/libraries/lwIpWrapper/src/CNetIf.h @@ -90,7 +90,7 @@ typedef enum { NI_ETHERNET } NetIfType_t; -#define MAX_CLIENT 32 +#define MAX_CLIENT MEMP_NUM_TCP_PCB #define MAX_DHCP_TRIES 4 #define TIMEOUT_DNS_REQUEST 10000U