diff --git a/examples/lighting-app/silabs/src/ZclCallbacks.cpp b/examples/lighting-app/silabs/src/ZclCallbacks.cpp index fa011289182631..1a27a20da15a63 100644 --- a/examples/lighting-app/silabs/src/ZclCallbacks.cpp +++ b/examples/lighting-app/silabs/src/ZclCallbacks.cpp @@ -45,7 +45,7 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & if (clusterId == OnOff::Id && attributeId == OnOff::Attributes::OnOff::Id) { #ifdef DIC_ENABLE - DIC_SendMsg("light/state", (const char *) (value ? (*value ? "on" : "off") : "invalid")); + dic_sendmsg("light/state", (const char *) (value ? (*value ? "on" : "off") : "invalid")); #endif // DIC_ENABLE LightMgr().InitiateAction(AppEvent::kEventType_Light, *value ? LightingManager::ON_ACTION : LightingManager::OFF_ACTION); } diff --git a/examples/lock-app/silabs/src/ZclCallbacks.cpp b/examples/lock-app/silabs/src/ZclCallbacks.cpp index fc0f2bbb736ff9..1c0c1efab19dde 100644 --- a/examples/lock-app/silabs/src/ZclCallbacks.cpp +++ b/examples/lock-app/silabs/src/ZclCallbacks.cpp @@ -52,7 +52,7 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & ChipLogProgress(Zcl, "Door lock cluster: " ChipLogFormatMEI " state %d", ChipLogValueMEI(clusterId), to_underlying(lockState)); #ifdef DIC_ENABLE - DIC_SendMsg("lock/state", (const char *) (lockState == DoorLock::DlLockState::kLocked ? "lock" : "unlock")); + dic_sendmsg("lock/state", (const char *) (lockState == DoorLock::DlLockState::kLocked ? "lock" : "unlock")); #endif // DIC_ENABLE } } diff --git a/examples/platform/silabs/BaseApplication.cpp b/examples/platform/silabs/BaseApplication.cpp index a0e256521790e1..78d31c8acd4b61 100644 --- a/examples/platform/silabs/BaseApplication.cpp +++ b/examples/platform/silabs/BaseApplication.cpp @@ -154,7 +154,7 @@ void AppSpecificConnectivityEventCallback(const ChipDeviceEvent * event, intptr_ (event->InternetConnectivityChange.IPv4 == kConnectivity_Established)) { SILABS_LOG("Got IPv4 Address! Starting DIC module\n"); - if (DIC_OK != DIC_Init(dic::control::subscribeCB)) + if (DIC_OK != dic_init(dic::control::subscribeCB)) SILABS_LOG("Failed to initialize DIC module\n"); } } diff --git a/examples/platform/silabs/SiWx917/BUILD.gn b/examples/platform/silabs/SiWx917/BUILD.gn index 910a4b35ccf784..c4549bd78fddf0 100644 --- a/examples/platform/silabs/SiWx917/BUILD.gn +++ b/examples/platform/silabs/SiWx917/BUILD.gn @@ -272,6 +272,12 @@ source_set("siwx917-common") { [ "${silabs_common_plat_dir}/DIC/matter_abs_interface:silabs-dic" ] } + # AWS SDK OTA + if (aws_sdk_ota) { + public_deps += + [ "${silabs_common_plat_dir}/DIC/matter_abs_interface:silabs-aws-sdk-ota" ] + } + # Attestation Credentials if (chip_build_platform_attestation_credentials_provider) { deps += [ ":siwx917-attestation-credentials" ] diff --git a/examples/platform/silabs/efr32/BUILD.gn b/examples/platform/silabs/efr32/BUILD.gn index b6f46fc54e3910..89fe44f171d417 100644 --- a/examples/platform/silabs/efr32/BUILD.gn +++ b/examples/platform/silabs/efr32/BUILD.gn @@ -238,6 +238,12 @@ source_set("efr32-common") { [ "${silabs_common_plat_dir}/DIC/matter_abs_interface:silabs-dic" ] } + # AWS SDK OTA + if (aws_sdk_ota) { + public_deps += + [ "${silabs_common_plat_dir}/DIC/matter_abs_interface:silabs-aws-sdk-ota" ] + } + include_dirs = [ "." ] sources = [ diff --git a/third_party/silabs/silabs_board.gni b/third_party/silabs/silabs_board.gni index bba3f060f8898d..2d25ac2b54e3f4 100644 --- a/third_party/silabs/silabs_board.gni +++ b/third_party/silabs/silabs_board.gni @@ -41,6 +41,9 @@ declare_args() { #Disable MQTT by default enable_dic = false + # Disable AWS SDK OTA by default + aws_sdk_ota = false + # Disable UART log forwarding by default sl_uart_log_output = false }