Skip to content

Commit

Permalink
Flow measurement cluster: camelcase attributes (#10966)
Browse files Browse the repository at this point in the history
* camelcase attributes

* updated flw tests

* added zap generated files
  • Loading branch information
janusheide authored Oct 27, 2021
1 parent fad72f7 commit 4b1bc90
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,67 +21,67 @@ config:
tests:
- label: "read the mandatory attribute: MeasuredValue"
command: "readAttribute"
attribute: "measured value"
attribute: "MeasuredValue"
response:
constraints:
type: uint16

- label: "read the mandatory attribute: MinMeasuredValue"
command: "readAttribute"
attribute: "min measured value"
attribute: "MinMeasuredValue"
response:
constraints:
type: uint16

- label: "read the mandatory attribute: MaxMeasuredValue"
command: "readAttribute"
attribute: "max measured value"
attribute: "MaxMeasuredValue"
response:
constraints:
type: uint16

- label: "write the default value to optional attribute: MeasuredValue"
disabled: true
command: "writeAttribute"
attribute: "measured value"
attribute: "MeasuredValue"
arguments:
value: 0
response:
error: 1

- label: "write the default value to optional attribute: MinMeasuredValue"
command: "writeAttribute"
attribute: "min measured value"
attribute: "MinMeasuredValue"
arguments:
value: 0
response:
error: 1

- label: "write the default value to optional attribute: MaxMeasuredValue"
command: "writeAttribute"
attribute: "max measured value"
attribute: "MaxMeasuredValue"
arguments:
value: 0
response:
error: 1

- label: "read the mandatory attribute: MeasuredValue"
command: "readAttribute"
attribute: "measured value"
attribute: "MeasuredValue"
response:
constraints:
type: uint16

- label: "read the mandatory attribute: MinMeasuredValue"
command: "readAttribute"
attribute: "min measured value"
attribute: "MinMeasuredValue"
response:
constraints:
type: uint16

- label: "read the mandatory attribute: MaxMeasuredValue"
command: "readAttribute"
attribute: "max measured value"
attribute: "MaxMeasuredValue"
response:
constraints:
type: uint16
Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ config:
tests:
- label: "read the mandatory attribute: MeasuredValue"
command: "readAttribute"
attribute: "measured value"
attribute: "MeasuredValue"
response:
constraints:
type: uint16
Expand All @@ -31,7 +31,7 @@ tests:

- label: "read the mandatory attribute: MeasuredValue"
command: "readAttribute"
attribute: "measured value"
attribute: "MeasuredValue"
response:
constraints:
type: uint16
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ limitations under the License.
<define>FLOW_MEASUREMENT_CLUSTER</define>
<client tick="false" init="false">true</client>
<server tick="false" init="false">true</server>
<attribute side="server" code="0x0000" define="FLOW_MEASURED_VALUE" type="INT16S" writable="false" optional="false">measured value</attribute>
<attribute side="server" code="0x0001" define="FLOW_MIN_MEASURED_VALUE" type="INT16S" min="-38221" max="65535" writable="false" optional="false">min measured value</attribute>
<attribute side="server" code="0x0002" define="FLOW_MAX_MEASURED_VALUE" type="INT16S" min="-38221" max="65535" writable="false" optional="false">max measured value</attribute>
<attribute side="server" code="0x0003" define="FLOW_TOLERANCE" type="INT16U" writable="false" default="0" optional="true">tolerance</attribute>
<attribute side="server" code="0x0000" define="FLOW_MEASURED_VALUE" type="INT16S" writable="false" optional="false">MeasuredValue</attribute>
<attribute side="server" code="0x0001" define="FLOW_MIN_MEASURED_VALUE" type="INT16S" min="-38221" max="65535" writable="false" optional="false">MinMeasuredValue</attribute>
<attribute side="server" code="0x0002" define="FLOW_MAX_MEASURED_VALUE" type="INT16S" min="-38221" max="65535" writable="false" optional="false">MaxMeasuredValue</attribute>
<attribute side="server" code="0x0003" define="FLOW_TOLERANCE" type="INT16U" writable="false" default="0" optional="true">Tolerance</attribute>
</cluster>

</configurator>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions zzz_generated/pump-app/zap-generated/endpoint_config.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions zzz_generated/thermostat/zap-generated/endpoint_config.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions zzz_generated/tv-casting-app/zap-generated/endpoint_config.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b1bc90

Please sign in to comment.