Skip to content

Commit

Permalink
Merge branch 'master' into LaundryDryerSDK-Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OmAmbalkar authored Jan 11, 2024
2 parents badbf40 + 30ebce4 commit ba864f5
Show file tree
Hide file tree
Showing 52 changed files with 6,308 additions and 207 deletions.
13 changes: 13 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") {
enable_linux_lock_app_build =
enable_default_builds && (host_os == "linux" || host_os == "mac")

# Build the Linux LIT ICD example.
enable_linux_lit_icd_app_build =
enable_default_builds && (host_os == "linux" || host_os == "mac")

# Build the cc13x2x7_26x2x7 lock app example.
enable_cc13x2x7_26x2x7_lock_app_build = enable_ti_simplelink_builds

Expand Down Expand Up @@ -610,6 +614,15 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") {
extra_build_deps += [ ":linux_lock_app" ]
}

if (enable_linux_lit_icd_app_build) {
group("linux_lit_icd_app") {
deps =
[ "${chip_root}/examples/lit-icd-app/linux(${standalone_toolchain})" ]
}

extra_build_deps += [ ":linux_lit_icd_app" ]
}

if (enable_efr32_lock_app_build) {
group("efr32_lock_app") {
deps = [ "${chip_root}/examples/lock-app/efr32(${chip_root}/config/efr32/toolchain:efr32_lock_app)" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2950,7 +2950,7 @@ cluster RefrigeratorAndTemperatureControlledCabinetMode = 82 {
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}

/** This cluster supports remotely monitoring and controling the different typs of functionality available to a washing device, such as a washing machine. */
/** This cluster supports remotely monitoring and controlling the different types of functionality available to a washing device, such as a washing machine. */
cluster LaundryWasherControls = 83 {
revision 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ open class GenericChipDeviceListener : ChipDeviceController.CompletionListener {
// No op
}

override fun onICDRegistrationComplete(
errorCode: Int,
icdNodeId: Long,
icdCounter: Long,
icdDeviceInfo: ICDDeviceInfo
) {
override fun onICDRegistrationComplete(errorCode: Int, icdDeviceInfo: ICDDeviceInfo) {
// No op
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -294,16 +294,22 @@ class DeviceProvisioningFragment : Fragment() {
)
}

override fun onICDRegistrationComplete(
errorCode: Int,
icdNodeId: Long,
icdCounter: Long,
icdDeviceInfo: ICDDeviceInfo
) {
override fun onICDRegistrationComplete(errorCode: Int, icdDeviceInfo: ICDDeviceInfo) {
Log.d(
TAG,
"onICDRegistrationComplete - errorCode: $errorCode, icdNodeId : $icdNodeId, icdCounter : $icdCounter, symmetricKey : ${icdDeviceInfo.symmetricKey.toHex()}"
"onICDRegistrationComplete - errorCode: $errorCode, symmetricKey : ${icdDeviceInfo.symmetricKey.toHex()}, icdDeviceInfo : $icdDeviceInfo"
)
requireActivity().runOnUiThread {
Toast.makeText(
requireActivity(),
getString(
R.string.icd_registration_completed,
icdDeviceInfo.userActiveModeTriggerHint.toString()
),
Toast.LENGTH_LONG
)
.show()
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,5 @@
<string name="ota_provider_node_id_text">Node ID</string>

<string name="icd_btn_text">Intermittently Connected Device</string>
<string name="icd_registration_completed">ICD device registration completed, How to trigger to switch to Active Mode : %1$s</string>
</resources>
9 changes: 4 additions & 5 deletions examples/chef/common/chef-rvc-operational-state-delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void emberAfOperationalStateClusterInitCallback(chip::EndpointId endpointId)

gOperationalStateDelegate = new OperationalStateDelegate;
EndpointId operationalStateEndpoint = 0x01;
gOperationalStateInstance = new Instance(gOperationalStateDelegate, operationalStateEndpoint, Clusters::OperationalState::Id);
gOperationalStateInstance = new OperationalState::Instance(gOperationalStateDelegate, operationalStateEndpoint);

gOperationalStateInstance->SetOperationalState(to_underlying(OperationalState::OperationalStateEnum::kStopped));

Expand All @@ -137,8 +137,8 @@ void emberAfOperationalStateClusterInitCallback(chip::EndpointId endpointId)

// Init RVC Operational State cluster

static OperationalState::Instance * gRvcOperationalStateInstance = nullptr;
static RvcOperationalStateDelegate * gRvcOperationalStateDelegate = nullptr;
static RvcOperationalState::Instance * gRvcOperationalStateInstance = nullptr;
static RvcOperationalStateDelegate * gRvcOperationalStateDelegate = nullptr;

void RvcOperationalState::Shutdown()
{
Expand All @@ -161,8 +161,7 @@ void emberAfRvcOperationalStateClusterInitCallback(chip::EndpointId endpointId)

gRvcOperationalStateDelegate = new RvcOperationalStateDelegate;
EndpointId operationalStateEndpoint = 0x01;
gRvcOperationalStateInstance =
new Instance(gRvcOperationalStateDelegate, operationalStateEndpoint, Clusters::RvcOperationalState::Id);
gRvcOperationalStateInstance = new RvcOperationalState::Instance(gRvcOperationalStateDelegate, operationalStateEndpoint);

gRvcOperationalStateInstance->SetOperationalState(to_underlying(OperationalState::OperationalStateEnum::kStopped));

Expand Down
Loading

0 comments on commit ba864f5

Please sign in to comment.