Skip to content

Commit

Permalink
Merge branch 'master' into attribute_list_sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jan 20, 2022
2 parents 64d9419 + fd815cd commit d4289f0
Show file tree
Hide file tree
Showing 100 changed files with 1,760 additions and 424 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Build Android CHIPTool and CHIPTest
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-{arm,arm64,x64,x86}-chip-*' build"
"./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-{arm,arm64}-chip-*' build"
# - name: Build Android Studio build (arm64 only)
# run: |
# ./scripts/run_in_build_env.sh \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
info event DownloadError = 2 {
INT32U softwareVersion = 0;
INT64U bytesDownloaded = 1;
INT8U progressPercent = 2;
nullable INT8U progressPercent = 2;
nullable INT64S platformCode = 3;
}

Expand Down Expand Up @@ -2084,15 +2084,22 @@ server cluster OperationalCredentials = 62 {
kInvalidFabricIndex = 11;
}

struct NOCStruct {
fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
OCTET_STRING icac = 2;
}

struct FabricDescriptor {
INT8U fabricIndex = 0;
fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
}

readonly attribute NOCStruct NOCs[] = 0;
readonly attribute FabricDescriptor fabricsList[] = 1;
readonly attribute int8u supportedFabrics = 2;
readonly attribute int8u commissionedFabrics = 3;
Expand Down
35 changes: 25 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 @@ -4355,6 +4355,21 @@
}
],
"attributes": [
{
"name": "NOCs",
"code": 0,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "fabrics list",
"code": 1,
Expand Down Expand Up @@ -7204,9 +7219,9 @@
]
},
{
"name": "MA-rootdevice",
"deviceTypeName": "MA-rootdevice",
"deviceTypeCode": 22,
"name": "MA-onofflight",
"deviceTypeName": "MA-onofflight",
"deviceTypeCode": 256,
"deviceTypeProfileId": 259,
"clusters": [
{
Expand Down Expand Up @@ -17119,9 +17134,9 @@
]
},
{
"name": "MA-rootdevice",
"deviceTypeName": "MA-rootdevice",
"deviceTypeCode": 22,
"name": "MA-onofflight",
"deviceTypeName": "MA-onofflight",
"deviceTypeCode": 256,
"deviceTypeProfileId": 259,
"clusters": [
{
Expand Down Expand Up @@ -20121,22 +20136,22 @@
"deviceIdentifier": 22
},
{
"endpointTypeName": "MA-rootdevice",
"endpointTypeName": "MA-onofflight",
"endpointTypeIndex": 1,
"profileId": 259,
"endpointId": 1,
"networkId": 0,
"endpointVersion": 1,
"deviceIdentifier": 22
"deviceIdentifier": 256
},
{
"endpointTypeName": "MA-rootdevice",
"endpointTypeName": "MA-onofflight",
"endpointTypeIndex": 2,
"profileId": 259,
"endpointId": 2,
"networkId": 0,
"endpointVersion": 1,
"deviceIdentifier": 22
"deviceIdentifier": 256
}
]
}
9 changes: 8 additions & 1 deletion examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -536,15 +536,22 @@ server cluster OperationalCredentials = 62 {
kInvalidFabricIndex = 11;
}

struct NOCStruct {
fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
OCTET_STRING icac = 2;
}

struct FabricDescriptor {
INT8U fabricIndex = 0;
fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
}

readonly attribute NOCStruct NOCs[] = 0;
readonly attribute FabricDescriptor fabricsList[] = 1;
readonly attribute int8u supportedFabrics = 2;
readonly attribute int8u commissionedFabrics = 3;
Expand Down
15 changes: 15 additions & 0 deletions examples/bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2918,6 +2918,21 @@
}
],
"attributes": [
{
"name": "NOCs",
"code": 0,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "fabrics list",
"code": 1,
Expand Down
2 changes: 0 additions & 2 deletions examples/chip-tool/templates/commands.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,7 @@ void registerCluster{{asUpperCamelCase name}}(Commands & commands)
{{/unless}}
{{/if}}
{{#if isReportableAttribute}}
{{#unless isList}}
make_unique<Report{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}>(), //
{{/unless}}
{{/if}}
{{/unless}}
{{/chip_server_cluster_attributes}}
Expand Down
9 changes: 8 additions & 1 deletion examples/door-lock-app/door-lock-common/door-lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -764,15 +764,22 @@ server cluster OperationalCredentials = 62 {
kInvalidFabricIndex = 11;
}

struct NOCStruct {
fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
OCTET_STRING icac = 2;
}

struct FabricDescriptor {
INT8U fabricIndex = 0;
fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
}

readonly attribute NOCStruct NOCs[] = 0;
readonly attribute FabricDescriptor fabricsList[] = 1;
readonly attribute int8u supportedFabrics = 2;
readonly attribute int8u commissionedFabrics = 3;
Expand Down
15 changes: 15 additions & 0 deletions examples/door-lock-app/door-lock-common/door-lock-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3885,6 +3885,21 @@
}
],
"attributes": [
{
"name": "NOCs",
"code": 0,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "fabrics list",
"code": 1,
Expand Down
11 changes: 9 additions & 2 deletions examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
info event DownloadError = 2 {
INT32U softwareVersion = 0;
INT64U bytesDownloaded = 1;
INT8U progressPercent = 2;
nullable INT8U progressPercent = 2;
nullable INT64S platformCode = 3;
}

Expand Down Expand Up @@ -1021,15 +1021,22 @@ server cluster OperationalCredentials = 62 {
kInvalidFabricIndex = 11;
}

struct NOCStruct {
fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
OCTET_STRING icac = 2;
}

struct FabricDescriptor {
INT8U fabricIndex = 0;
fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
}

readonly attribute NOCStruct NOCs[] = 0;
readonly attribute FabricDescriptor fabricsList[] = 1;
readonly attribute int8u supportedFabrics = 2;
readonly attribute int8u commissionedFabrics = 3;
Expand Down
15 changes: 15 additions & 0 deletions examples/lighting-app/lighting-common/lighting-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -4143,6 +4143,21 @@
}
],
"attributes": [
{
"name": "NOCs",
"code": 0,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "fabrics list",
"code": 1,
Expand Down
9 changes: 8 additions & 1 deletion examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -460,15 +460,22 @@ server cluster OperationalCredentials = 62 {
kInvalidFabricIndex = 11;
}

struct NOCStruct {
fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
OCTET_STRING icac = 2;
}

struct FabricDescriptor {
INT8U fabricIndex = 0;
fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
}

readonly attribute NOCStruct NOCs[] = 0;
readonly attribute FabricDescriptor fabricsList[] = 1;
readonly attribute int8u supportedFabrics = 2;
readonly attribute int8u commissionedFabrics = 3;
Expand Down
15 changes: 15 additions & 0 deletions examples/lock-app/lock-common/lock-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3885,6 +3885,21 @@
}
],
"attributes": [
{
"name": "NOCs",
"code": 0,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "fabrics list",
"code": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ server cluster OperationalCredentials = 62 {
}

struct FabricDescriptor {
INT8U fabricIndex = 0;
fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,22 @@ server cluster OperationalCredentials = 62 {
kInvalidFabricIndex = 11;
}

struct NOCStruct {
fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
OCTET_STRING icac = 2;
}

struct FabricDescriptor {
INT8U fabricIndex = 0;
fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
}

readonly attribute NOCStruct NOCs[] = 0;
readonly attribute FabricDescriptor fabricsList[] = 1;
readonly attribute int8u supportedFabrics = 2;
readonly attribute int8u commissionedFabrics = 3;
Expand Down
15 changes: 15 additions & 0 deletions examples/ota-provider-app/ota-provider-common/ota-provider-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,21 @@
}
],
"attributes": [
{
"name": "NOCs",
"code": 0,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "fabrics list",
"code": 1,
Expand Down
Loading

0 comments on commit d4289f0

Please sign in to comment.