From 9e8098964c018e8bcdf654f2a62a1e744587d280 Mon Sep 17 00:00:00 2001 From: Florian Date: Sat, 25 Apr 2026 11:59:49 -0500 Subject: [PATCH] [MEM] Reduce NimBLE max connections from 3 to 1 (#2300) The BLE gateway only connects to one device at a time sequentially, so 3 connection slots are unnecessary. This saves ~4-8KB of RAM. Co-authored-by: Florian <1technophile@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) --- sdkconfig.defaults | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkconfig.defaults b/sdkconfig.defaults index cd8e354..6a4e78d 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -66,7 +66,7 @@ CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_INTERNAL=y CONFIG_BT_NIMBLE_LOG_LEVEL_INFO=y # CONFIG_BT_NIMBLE_LOG_LEVEL_DEBUG is not set CONFIG_BT_NIMBLE_LOG_LEVEL=1 -CONFIG_BT_NIMBLE_MAX_CONNECTIONS=3 +CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1 CONFIG_BT_NIMBLE_MAX_BONDS=3 CONFIG_BT_NIMBLE_MAX_CCCDS=8 CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM=0