Skip to content

Commit

Permalink
[Silabs] Add build flag for subscription handler (project-chip#25020)
Browse files Browse the repository at this point in the history
* add subscription handler build flag

* reduce default sleep time
  • Loading branch information
mkardous-silabs authored Feb 13, 2023
1 parent 9508b52 commit e7528bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions examples/platform/silabs/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ declare_args() {

#default Wifi Password
chip_default_wifi_psk = ""

# Use default handler to negotiate subscription max interval
chip_config_use_icd_subscription_callbacks = enable_sleepy_device
}

silabs_common_plat_dir = "${chip_root}/examples/platform/silabs"
Expand Down Expand Up @@ -321,6 +324,10 @@ source_set("efr32-common") {
public_deps += [ ":efr32-factory-data-provider" ]
}

if (chip_config_use_icd_subscription_callbacks) {
public_deps += [ ":efr32-ICD-subscription-callback" ]
}

public_deps += [
"${chip_root}/examples/providers:device_info_provider",
"${chip_root}/src/lib",
Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare_args() {
# Enable Segger System View
use_system_view = false

sleep_time_ms = 3300000 # 55 mins sleep
sleep_time_ms = 30000 # 30 seconds sleep

silabs_log_enabled = true

Expand Down

0 comments on commit e7528bc

Please sign in to comment.