Skip to content

Commit

Permalink
[ESP32] Set MAX_EVENT_QUEUE_SIZE to 40 by default for ESP32 platform (#…
Browse files Browse the repository at this point in the history
…34202)

* Set max_event_queue_size to 40 for ESP32 platform

* Addressed review comments
  • Loading branch information
shripad621git authored Jul 8, 2024
1 parent 6e31453 commit 8786012
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,11 @@ menu "CHIP Device Layer"
config MAX_EVENT_QUEUE_SIZE
int "Max Event Queue Size"
range 0 65535
default 25
default 40
help
The maximum number of events that can be held in the CHIP Platform event queue.
Should be set greater than CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM. For SoCs other than
ESP32-C2, where the Wi-Fi buffer number is 8, recommended to use the default value.

config ENABLE_EXTENDED_DISCOVERY
bool "Enable Extended discovery Support"
Expand Down
3 changes: 3 additions & 0 deletions examples/all-clusters-app/esp32/sdkconfig.defaults.esp32c2
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ CONFIG_BT_NIMBLE_ROLE_OBSERVER=n
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=4
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16

# Event Queue Size
CONFIG_MAX_EVENT_QUEUE_SIZE=25
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ CONFIG_BT_NIMBLE_ROLE_OBSERVER=n
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=4
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16

# Event Queue Size
CONFIG_MAX_EVENT_QUEUE_SIZE=25
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=4
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16

# Event Queue Size
CONFIG_MAX_EVENT_QUEUE_SIZE=25

# Enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y
3 changes: 3 additions & 0 deletions examples/lighting-app/esp32/sdkconfig.defaults.esp32c2
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=4
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16

# Event Queue Size
CONFIG_MAX_EVENT_QUEUE_SIZE=25

# Enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y

0 comments on commit 8786012

Please sign in to comment.