Skip to content

Commit 3eda216

Browse files
committed
update zap file
1 parent ba31673 commit 3eda216

File tree

4 files changed

+34
-33
lines changed

4 files changed

+34
-33
lines changed

.github/workflows/examples-bouffalolab.yaml

+19-18
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,25 @@ jobs:
5454
if: ${{ !env.ACT }}
5555
with:
5656
gh-context: ${{ toJson(github) }}
57+
58+
- name: Build example BL702L Contact Sensor
59+
timeout-minutes: 30
60+
run: |
61+
./scripts/run_in_build_env.sh \
62+
"./scripts/build/build_examples.py \
63+
--target bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd \
64+
build \
65+
--copy-artifacts-to out/artifacts \
66+
"
67+
- name: Prepare some bloat report from the previous builds
68+
run: |
69+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
70+
bl702l bl702l+mfd+littlefs contact-sensor-app \
71+
out/artifacts/bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd/chip-bl702l-contact-sensor-example.out \
72+
/tmp/bloat_reports/
73+
- name: Clean out build output
74+
run: rm -rf ./out
75+
5776
- name: Build example BL602 Lighting App
5877
run: |
5978
./scripts/run_in_build_env.sh \
@@ -116,24 +135,6 @@ jobs:
116135
- name: Clean out build output
117136
run: rm -rf ./out
118137

119-
- name: Build example BL702L Contact Sensor
120-
timeout-minutes: 30
121-
run: |
122-
./scripts/run_in_build_env.sh \
123-
"./scripts/build/build_examples.py \
124-
--target bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd \
125-
build \
126-
--copy-artifacts-to out/artifacts \
127-
"
128-
- name: Prepare some bloat report from the previous builds
129-
run: |
130-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
131-
bl702l bl702l+mfd+littlefs lighting-app \
132-
out/artifacts/bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd/chip-bl702l-contact-sensor-example.out \
133-
/tmp/bloat_reports/
134-
- name: Clean out build output
135-
run: rm -rf ./out
136-
137138
- name: Uploading Size Reports
138139
uses: ./.github/actions/upload-size-reports
139140
if: ${{ !env.ACT }}

examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app.matter

+8-8
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ cluster GeneralDiagnostics = 51 {
12411241
/** Take a snapshot of system time and epoch time. */
12421242
command TimeSnapshot(): TimeSnapshotResponse = 1;
12431243
/** Request a variable length payload response. */
1244-
command PayloadTestRequest(PayloadTestRequestRequest): PayloadTestResponse = 3;
1244+
command access(invoke: manage) PayloadTestRequest(PayloadTestRequestRequest): PayloadTestResponse = 3;
12451245
}
12461246

12471247
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
@@ -1809,10 +1809,10 @@ cluster IcdManagement = 70 {
18091809
readonly attribute access(read: administer) optional MonitoringRegistrationStruct registeredClients[] = 3;
18101810
readonly attribute access(read: administer) optional int32u ICDCounter = 4;
18111811
readonly attribute optional int16u clientsSupportedPerFabric = 5;
1812-
provisional readonly attribute optional UserActiveModeTriggerBitmap userActiveModeTriggerHint = 6;
1813-
provisional readonly attribute optional char_string<128> userActiveModeTriggerInstruction = 7;
1814-
provisional readonly attribute optional OperatingModeEnum operatingMode = 8;
1815-
provisional readonly attribute optional int32u maximumCheckInBackOff = 9;
1812+
readonly attribute optional UserActiveModeTriggerBitmap userActiveModeTriggerHint = 6;
1813+
readonly attribute optional char_string<128> userActiveModeTriggerInstruction = 7;
1814+
readonly attribute optional OperatingModeEnum operatingMode = 8;
1815+
readonly attribute optional int32u maximumCheckInBackOff = 9;
18161816
readonly attribute command_id generatedCommandList[] = 65528;
18171817
readonly attribute command_id acceptedCommandList[] = 65529;
18181818
readonly attribute event_id eventList[] = 65530;
@@ -2233,14 +2233,14 @@ endpoint 0 {
22332233
callback attribute registeredClients;
22342234
callback attribute ICDCounter;
22352235
callback attribute clientsSupportedPerFabric;
2236-
ram attribute userActiveModeTriggerHint;
2237-
ram attribute userActiveModeTriggerInstruction;
2236+
ram attribute userActiveModeTriggerHint default = 0x100;
2237+
ram attribute userActiveModeTriggerInstruction default = "Push setup button for Active Mode";
22382238
ram attribute operatingMode default = 0;
22392239
callback attribute maximumCheckInBackOff;
22402240
callback attribute generatedCommandList;
22412241
callback attribute acceptedCommandList;
22422242
callback attribute attributeList;
2243-
ram attribute featureMap default = 4;
2243+
ram attribute featureMap default = 0x000f;
22442244
ram attribute clusterRevision default = 3;
22452245

22462246
handle command RegisterClient;

examples/contact-sensor-app/bouffalolab/data_model/contact-sensor-app.zap

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"fileFormat": 2,
3-
"featureLevel": 106,
3+
"featureLevel": 104,
44
"creator": "zap",
55
"keyValuePairs": [
66
{
@@ -1087,7 +1087,7 @@
10871087
"storageOption": "External",
10881088
"singleton": 0,
10891089
"bounded": 0,
1090-
"defaultValue": "",
1090+
"defaultValue": null,
10911091
"reportable": 1,
10921092
"minInterval": 1,
10931093
"maxInterval": 65534,
@@ -1103,7 +1103,7 @@
11031103
"storageOption": "External",
11041104
"singleton": 0,
11051105
"bounded": 0,
1106-
"defaultValue": "",
1106+
"defaultValue": null,
11071107
"reportable": 1,
11081108
"minInterval": 1,
11091109
"maxInterval": 65534,
@@ -1119,7 +1119,7 @@
11191119
"storageOption": "External",
11201120
"singleton": 0,
11211121
"bounded": 0,
1122-
"defaultValue": "",
1122+
"defaultValue": null,
11231123
"reportable": 1,
11241124
"minInterval": 1,
11251125
"maxInterval": 65534,
@@ -1135,7 +1135,7 @@
11351135
"storageOption": "External",
11361136
"singleton": 0,
11371137
"bounded": 0,
1138-
"defaultValue": "",
1138+
"defaultValue": null,
11391139
"reportable": 1,
11401140
"minInterval": 1,
11411141
"maxInterval": 65534,
@@ -4515,4 +4515,4 @@
45154515
"parentEndpointIdentifier": null
45164516
}
45174517
]
4518-
}
4518+
}

scripts/build/builders/bouffalolab.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def AppNamePrefix(self, chip_name):
3737
if self == BouffalolabApp.LIGHT:
3838
return ('chip-%s-lighting-example' % chip_name)
3939
elif self == BouffalolabApp.CONTACT:
40-
return ('chip-%s-contact-example' % chip_name)
40+
return ('chip-%s-contact-sensor-example' % chip_name)
4141
else:
4242
raise Exception('Unknown app type: %r' % self)
4343

0 commit comments

Comments
 (0)