Skip to content

Commit

Permalink
Added changes with respect to aws ota
Browse files Browse the repository at this point in the history
  • Loading branch information
KishorSilabs committed Aug 18, 2023
1 parent ba6f07e commit dabe97e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/lighting-app/silabs/src/ZclCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/silabs/src/ZclCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/silabs/BaseApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down
6 changes: 6 additions & 0 deletions examples/platform/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down
6 changes: 6 additions & 0 deletions examples/platform/silabs/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
3 changes: 3 additions & 0 deletions third_party/silabs/silabs_board.gni
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit dabe97e

Please sign in to comment.