diff --git a/examples/lighting-app/stm32/include/STM32WB5/CHIPProjectConfig.h b/examples/lighting-app/stm32/include/STM32WB5/CHIPProjectConfig.h index a911c565e95a1b..a20356b714fef2 100644 --- a/examples/lighting-app/stm32/include/STM32WB5/CHIPProjectConfig.h +++ b/examples/lighting-app/stm32/include/STM32WB5/CHIPProjectConfig.h @@ -144,6 +144,9 @@ #define CHIP_AUTOMATION_LOGGING 1 #define CHIP_DEVICE_CONFIG_MAX_DISCOVERED_IP_ADDRESSES 5 + +#define CHIP_DEVICE_CONFIG_MAX_DEVICE_NAME_LEN 32 + /** * HIGHWATERMARK * diff --git a/examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn b/examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn index d8d2f92b542ac7..b165b3711176ce 100644 --- a/examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn +++ b/examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn @@ -29,6 +29,7 @@ declare_args() { chip_bt_bluedroid_enabled = true chip_max_discovered_ip_addresses = 5 chip_enable_route_hook = false + chip_max_device_name_len = 32 } buildconfig_header("custom_buildconfig") { @@ -61,6 +62,7 @@ buildconfig_header("custom_buildconfig") { "EXTERNAL_PLATFORMMANAGERIMPL_HEADER=", "CHIP_CONFIG_SOFTWARE_VERSION_NUMBER=${chip_config_software_version_number}", "CHIP_DEVICE_CONFIG_MAX_DISCOVERED_IP_ADDRESSES=${chip_max_discovered_ip_addresses}", + "CHIP_DEVICE_CONFIG_MAX_DEVICE_NAME_LEN=${chip_max_device_name_len}", ] if (chip_enable_ota_requestor) {