Skip to content

Commit

Permalink
Sort Sources attribute in power source configuration cluster based on…
Browse files Browse the repository at this point in the history
… order of the power source cluster (#17840)

* register attributeaccessinterface only on endpoint 0

* sort endpoints based on power source cluster order attribute

* extended power source cluster example on all-clusters-app

* regenerate all

* removed using map and using qsort instead

* update test to reflect added power source server cluster on ep 0

* regenerate

* attempt to fix conversion error

* second attempt to fix conversion error

* next attempt to fix conversion error

* update max power source count and new compare mechanism

* convert loop variable to int

* update power source cluster expected featuremap value to 2

* regenerate all

* allign power source cluster yaml tests

* regenerate all

* regenerate after rebase on ToT

* changed scope of few variables
  • Loading branch information
fessehaeve authored May 5, 2022
1 parent 05d9ff3 commit 5a61cdd
Show file tree
Hide file tree
Showing 10 changed files with 9,791 additions and 8,464 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2623,12 +2623,9 @@ server cluster PowerSource = 47 {
readonly attribute enum8 status = 0;
readonly attribute int8u order = 1;
readonly attribute char_string<60> description = 2;
readonly attribute int32u batteryVoltage = 11;
readonly attribute int8u batteryPercentRemaining = 12;
readonly attribute int32u batteryTimeRemaining = 13;
readonly attribute enum8 batteryChargeLevel = 14;
readonly attribute ENUM8 activeBatteryFaults[] = 18;
readonly attribute enum8 batteryChargeState = 26;
readonly attribute boolean batteryReplacementNeeded = 15;
readonly attribute enum8 batteryReplaceability = 16;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
}
Expand Down Expand Up @@ -3777,6 +3774,7 @@ endpoint 0 {
binding cluster OtaSoftwareUpdateProvider;
server cluster OtaSoftwareUpdateRequestor;
server cluster OperationalCredentials;
server cluster PowerSource;
server cluster PowerSourceConfiguration;
server cluster RelativeHumidityMeasurement;
server cluster SoftwareDiagnostics;
Expand Down Expand Up @@ -3840,6 +3838,7 @@ endpoint 2 {
server cluster Groups;
server cluster OccupancySensing;
server cluster OnOff;
server cluster PowerSource;
}

endpoint 65534 {
Expand Down
Loading

0 comments on commit 5a61cdd

Please sign in to comment.