Skip to content

Commit

Permalink
More cluster define renames for consistency with spec cluster names (#…
Browse files Browse the repository at this point in the history
…23487)

* Rename PUMP_CONFIG_CONTROL to PUMP_CONFIGURATION_AND_CONTROL

* Rename TEMP_MEASUREMENT_CLUSTER to TEMPERATURE_MEASUREMENT_CLUSTER

* zap regen

* Restyle

* rename THERMOSTAT_UI_CONFIG_CLUSTER into THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER (even though this does NOT seem to be a valid matter cluster ... name taken from zigbee

* zap regen
  • Loading branch information
andy31415 authored Nov 4, 2022
1 parent 0970426 commit a99675e
Show file tree
Hide file tree
Showing 52 changed files with 224 additions and 216 deletions.
20 changes: 10 additions & 10 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -7710,7 +7710,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -7736,7 +7736,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 0,
"attributes": [
Expand Down Expand Up @@ -14102,7 +14102,7 @@
"name": "Pump Configuration and Control",
"code": 512,
"mfgCode": null,
"define": "PUMP_CONFIG_CONTROL_CLUSTER",
"define": "PUMP_CONFIGURATION_AND_CONTROL_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -14128,7 +14128,7 @@
"name": "Pump Configuration and Control",
"code": 512,
"mfgCode": null,
"define": "PUMP_CONFIG_CONTROL_CLUSTER",
"define": "PUMP_CONFIGURATION_AND_CONTROL_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -15308,7 +15308,7 @@
"name": "Thermostat User Interface Configuration",
"code": 516,
"mfgCode": null,
"define": "THERMOSTAT_UI_CONFIG_CLUSTER",
"define": "THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -15334,7 +15334,7 @@
"name": "Thermostat User Interface Configuration",
"code": 516,
"mfgCode": null,
"define": "THERMOSTAT_UI_CONFIG_CLUSTER",
"define": "THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -16626,7 +16626,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -16652,7 +16652,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -24128,7 +24128,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -24154,7 +24154,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 0,
"attributes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7710,7 +7710,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -7736,7 +7736,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 0,
"attributes": [
Expand Down Expand Up @@ -13872,7 +13872,7 @@
"name": "Pump Configuration and Control",
"code": 512,
"mfgCode": null,
"define": "PUMP_CONFIG_CONTROL_CLUSTER",
"define": "PUMP_CONFIGURATION_AND_CONTROL_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -13898,7 +13898,7 @@
"name": "Pump Configuration and Control",
"code": 512,
"mfgCode": null,
"define": "PUMP_CONFIG_CONTROL_CLUSTER",
"define": "PUMP_CONFIGURATION_AND_CONTROL_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -15014,7 +15014,7 @@
"name": "Thermostat User Interface Configuration",
"code": 516,
"mfgCode": null,
"define": "THERMOSTAT_UI_CONFIG_CLUSTER",
"define": "THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -15040,7 +15040,7 @@
"name": "Thermostat User Interface Configuration",
"code": 516,
"mfgCode": null,
"define": "THERMOSTAT_UI_CONFIG_CLUSTER",
"define": "THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -16332,7 +16332,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -16358,7 +16358,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -23904,7 +23904,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -23930,7 +23930,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 0,
"attributes": [
Expand Down
4 changes: 2 additions & 2 deletions examples/bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -7320,7 +7320,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand Down Expand Up @@ -7362,7 +7362,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down
2 changes: 1 addition & 1 deletion examples/bridge-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ DECLARE_DYNAMIC_ATTRIBUTE(ZCL_TEMP_MEASURED_VALUE_ATTRIBUTE_ID, INT16S, 2, 0),
// - Descriptor
// - Bridged Device Basic
DECLARE_DYNAMIC_CLUSTER_LIST_BEGIN(bridgedTempSensorClusters)
DECLARE_DYNAMIC_CLUSTER(ZCL_TEMP_MEASUREMENT_CLUSTER_ID, tempSensorAttrs, nullptr, nullptr),
DECLARE_DYNAMIC_CLUSTER(ZCL_TEMPERATURE_MEASUREMENT_CLUSTER_ID, tempSensorAttrs, nullptr, nullptr),
DECLARE_DYNAMIC_CLUSTER(ZCL_DESCRIPTOR_CLUSTER_ID, descriptorAttrs, nullptr, nullptr),
DECLARE_DYNAMIC_CLUSTER(ZCL_BRIDGED_DEVICE_BASIC_CLUSTER_ID, bridgedDeviceBasicAttrs, nullptr, nullptr),
DECLARE_DYNAMIC_CLUSTER_LIST_END;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5954,7 +5954,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand Down Expand Up @@ -5996,7 +5996,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down
8 changes: 4 additions & 4 deletions examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap
Original file line number Diff line number Diff line change
Expand Up @@ -7334,15 +7334,15 @@
"name": "Thermostat User Interface Configuration",
"code": 516,
"mfgCode": null,
"define": "THERMOSTAT_UI_CONFIG_CLUSTER",
"define": "THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER",
"side": "client",
"enabled": 0
},
{
"name": "Thermostat User Interface Configuration",
"code": 516,
"mfgCode": null,
"define": "THERMOSTAT_UI_CONFIG_CLUSTER",
"define": "THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -7480,7 +7480,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -7522,7 +7522,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 0
},
Expand Down
6 changes: 3 additions & 3 deletions examples/common/pigweed/protos/attributes_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ enum ClusterType {
ZCL_DOOR_LOCK_CLUSTER_ID = 0x0101;
ZCL_WINDOW_COVERING_CLUSTER_ID = 0x0102;
ZCL_BARRIER_CONTROL_CLUSTER_ID = 0x0103;
ZCL_PUMP_CONFIG_CONTROL_CLUSTER_ID = 0x0200;
ZCL_PUMP_CONFIGURATION_AND_CONTROL_CLUSTER_ID = 0x0200;
ZCL_THERMOSTAT_CLUSTER_ID = 0x0201;
ZCL_FAN_CONTROL_CLUSTER_ID = 0x0202;
ZCL_DEHUMID_CONTROL_CLUSTER_ID = 0x0203;
ZCL_THERMOSTAT_UI_CONFIG_CLUSTER_ID = 0x0204;
ZCL_THERMOSTAT_USER_INTERFACE_CONFIGURATION_CLUSTER_ID = 0x0204;
ZCL_COLOR_CONTROL_CLUSTER_ID = 0x0300;
ZCL_BALLAST_CONFIGURATION_CLUSTER_ID = 0x0301;
ZCL_ILLUMINANCE_MEASUREMENT_CLUSTER_ID = 0x0400;
ZCL_TEMP_MEASUREMENT_CLUSTER_ID = 0x0402;
ZCL_TEMPERATURE_MEASUREMENT_CLUSTER_ID = 0x0402;
ZCL_PRESSURE_MEASUREMENT_CLUSTER_ID = 0x0403;
ZCL_FLOW_MEASUREMENT_CLUSTER_ID = 0x0404;
ZCL_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER_ID = 0x0405;
Expand Down
4 changes: 2 additions & 2 deletions examples/dynamic-bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -7320,7 +7320,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand Down Expand Up @@ -7362,7 +7362,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down
4 changes: 2 additions & 2 deletions examples/log-source-app/log-source-common/log-source-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3402,7 +3402,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -3428,7 +3428,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 0,
"attributes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4638,7 +4638,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -4664,7 +4664,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 0,
"attributes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4888,7 +4888,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand All @@ -4914,7 +4914,7 @@
"name": "Temperature Measurement",
"code": 1026,
"mfgCode": null,
"define": "TEMP_MEASUREMENT_CLUSTER",
"define": "TEMPERATURE_MEASUREMENT_CLUSTER",
"side": "server",
"enabled": 0,
"attributes": [
Expand Down
Loading

0 comments on commit a99675e

Please sign in to comment.