Skip to content

Commit

Permalink
Changed the bridge-app to use temperature sensors rather than switche…
Browse files Browse the repository at this point in the history
…s. (#21287)

* Changed the bridge-app to use temperature sensors rather than switches.

The switches in the bridge-app were change to temperature sensors to match
the updated bridge test plan.

A lock was also added in a few places in the bridge-app to fix errors that reported reported
a "Chip stack locking error"

* Updates to address comments from code review.

* Updated bridge-app common files.

* Restyled by clang-format

* Renamed variable to avoid build failures.

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 27, 2023
1 parent c341592 commit 1032142
Show file tree
Hide file tree
Showing 9 changed files with 474 additions and 201 deletions.
22 changes: 22 additions & 0 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,17 @@ server cluster UserLabel = 65 {
readonly attribute int16u clusterRevision = 65533;
}

server cluster TemperatureMeasurement = 1026 {
readonly attribute nullable int16s measuredValue = 0;
readonly attribute nullable int16s minMeasuredValue = 1;
readonly attribute nullable int16s maxMeasuredValue = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
}

endpoint 0 {
device type bridge = 22;
binding cluster AccessControl;
Expand Down Expand Up @@ -1794,6 +1805,17 @@ endpoint 2 {
ram attribute featureMap;
ram attribute clusterRevision default = 1;
}

server cluster TemperatureMeasurement {
callback attribute measuredValue;
callback attribute minMeasuredValue default = 0x954D;
callback attribute maxMeasuredValue default = 0x7FFF;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
callback attribute featureMap;
callback attribute clusterRevision default = 1;
}
}


Loading

0 comments on commit 1032142

Please sign in to comment.