Skip to content

Commit 0204837

Browse files
committed
Generated using ./alchemy zap --attribute="in-progress" ... WebRTC_Requestor.adoc
1 parent ae41431 commit 0204837

File tree

6 files changed

+502
-130
lines changed

6 files changed

+502
-130
lines changed

.github/workflows/tests.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ jobs:
197197
src/app/zap-templates/zcl/data-model/chip/wake-on-lan-cluster.xml \
198198
src/app/zap-templates/zcl/data-model/chip/washer-controls-cluster.xml \
199199
src/app/zap-templates/zcl/data-model/chip/water-heater-management-cluster.xml \
200+
src/app/zap-templates/zcl/data-model/chip/web-rtc-requestor-cluster.xml \
200201
src/app/zap-templates/zcl/data-model/chip/wifi-network-diagnostics-cluster.xml \
201202
src/app/zap-templates/zcl/data-model/chip/wifi-network-management-cluster.xml \
202203
src/app/zap-templates/zcl/data-model/chip/window-covering.xml \

scripts/rules.matterlint

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ load "../src/app/zap-templates/zcl/data-model/chip/wake-on-lan-cluster.xml";
107107
load "../src/app/zap-templates/zcl/data-model/chip/washer-controls-cluster.xml";
108108
load "../src/app/zap-templates/zcl/data-model/chip/water-heater-management-cluster.xml";
109109
load "../src/app/zap-templates/zcl/data-model/chip/water-heater-mode-cluster.xml";
110+
load "../src/app/zap-templates/zcl/data-model/chip/web-rtc-requestor-cluster.xml";
110111
load "../src/app/zap-templates/zcl/data-model/chip/wifi-network-diagnostics-cluster.xml";
111112
load "../src/app/zap-templates/zcl/data-model/chip/wifi-network-management-cluster.xml";
112113
load "../src/app/zap-templates/zcl/data-model/chip/window-covering.xml";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Copyright (c) 2024 Project CHIP Authors
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<!--
18+
XML generated by Alchemy; DO NOT EDIT.
19+
Source: src/app_clusters/WebRTC_Requestor.adoc
20+
Parameters: in-progress
21+
Git: 0.7-fall2024-ncr-1155-g78ec59e8a-dirty
22+
-->
23+
<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
24+
<domain name="General"/>
25+
<cluster apiMaturity="provisional">
26+
<domain name="General"/>
27+
<name>WebRTC Transport Requestor</name>
28+
<code>0x0554</code>
29+
<define>WEB_RTC_TRANSPORT_REQUESTOR_CLUSTER</define>
30+
<description>The WebRTC transport requestor cluster provides a way for stream consumers (e.g. Matter Stream Viewer) to establish a WebRTC connection with a stream provider that implements the WebRTC Transport Provider Cluster</description>
31+
<client init="false" tick="false">true</client>
32+
<server init="false" tick="false">true</server>
33+
<globalAttribute code="0xFFFD" side="either" value="1"/>
34+
<attribute code="0x0000" side="server" define="CURRENT_SESSIONS" type="array" entryType="WebRTCSessionStruct" default="0">CurrentSessions</attribute>
35+
<command code="0x01" source="client" name="WebRTCOffer" optional="false">
36+
<description>This command provides the stream requestor with WebRTC session details.</description>
37+
<arg id="1" name="WebRTCSessionID" type="int16u"/>
38+
<arg id="2" name="SDP" type="char_string"/>
39+
<arg id="3" name="ICEServers" array="true" type="ICEServerStruct" optional="true"/>
40+
<arg id="4" name="ICETransportPolicy" type="char_string" optional="true"/>
41+
</command>
42+
43+
<command code="0x02" source="client" name="WebRTCAnswer" optional="false">
44+
<description>This command provides the stream requestor with the WebRTC session details (i.e.</description>
45+
<arg id="1" name="WebRTCSessionID" type="int16u"/>
46+
<arg id="2" name="SDP" type="char_string"/>
47+
</command>
48+
49+
<command code="0x03" source="client" name="WebRTCICECandidate" optional="false">
50+
<description>This command provides an ICE candidate to the stream requestor in a WebRTC session.</description>
51+
<arg id="1" name="WebRTCSessionID" type="int16u"/>
52+
<arg id="2" name="ICECandidate" type="char_string"/>
53+
</command>
54+
55+
<command code="0x04" source="client" name="WebRTCEnd" optional="false">
56+
<description>This command notifies the stream requestor that the provider has ended the WebRTC session.</description>
57+
<arg id="1" name="WebRTCSessionID" type="int16u"/>
58+
<arg id="2" name="Reason" type="WebRTCEndReasonEnum" min="0x00" max="0x0C"/>
59+
</command>
60+
61+
</cluster>
62+
</configurator>

src/app/zap-templates/zcl/zcl-with-test-extensions.json

+90-22
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"washer-controls-cluster.xml",
136136
"water-heater-management-cluster.xml",
137137
"water-heater-mode-cluster.xml",
138+
"web-rtc-requestor-cluster.xml",
138139
"wifi-network-diagnostics-cluster.xml",
139140
"wifi-network-management-cluster.xml",
140141
"window-covering.xml",
@@ -147,9 +148,15 @@
147148
"manufacturersXml": "../../../../src/app/zap-templates/zcl/data-model/manufacturers.xml",
148149
"options": {
149150
"text": {
150-
"defaultResponsePolicy": ["Always", "Conditional", "Never"]
151+
"defaultResponsePolicy": [
152+
"Always",
153+
"Conditional",
154+
"Never"
155+
]
151156
},
152-
"bool": ["commandDiscovery"]
157+
"bool": [
158+
"commandDiscovery"
159+
]
153160
},
154161
"defaults": {
155162
"text": {
@@ -195,8 +202,13 @@
195202
"SpecificationVersion",
196203
"MaxPathsPerInvoke"
197204
],
198-
"Bridged Device Basic Information": ["ProductAppearance"],
199-
"Descriptor": ["ClusterRevision", "FeatureMap"],
205+
"Bridged Device Basic Information": [
206+
"ProductAppearance"
207+
],
208+
"Descriptor": [
209+
"ClusterRevision",
210+
"FeatureMap"
211+
],
200212
"Device Energy Management": [
201213
"ESAType",
202214
"ESACanGenerate",
@@ -248,7 +260,11 @@
248260
"SessionEnergyDischarged",
249261
"FeatureMap"
250262
],
251-
"Energy EVSE Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
263+
"Energy EVSE Mode": [
264+
"SupportedModes",
265+
"CurrentMode",
266+
"FeatureMap"
267+
],
252268
"Ethernet Network Diagnostics": [
253269
"PHYRate",
254270
"FullDuplex",
@@ -293,7 +309,11 @@
293309
"ClientsSupportedPerFabric",
294310
"MaximumCheckInBackOff"
295311
],
296-
"Occupancy Sensing": ["HoldTimeLimits", "HoldTime", "FeatureMap"],
312+
"Occupancy Sensing": [
313+
"HoldTimeLimits",
314+
"HoldTime",
315+
"FeatureMap"
316+
],
297317
"Operational Credentials": [
298318
"SupportedFabrics",
299319
"CommissionedFabrics",
@@ -400,14 +420,21 @@
400420
"CurrentMaxRate",
401421
"OverrunCount"
402422
],
403-
"Channel": ["Lineup", "CurrentChannel"],
423+
"Channel": [
424+
"Lineup",
425+
"CurrentChannel"
426+
],
404427
"Media Playback": [
405428
"SampledPosition",
406429
"ActiveAudioTrack",
407430
"ActiveTextTrack"
408431
],
409-
"Application Launcher": ["CurrentApp"],
410-
"Application Basic": ["Application"],
432+
"Application Launcher": [
433+
"CurrentApp"
434+
],
435+
"Application Basic": [
436+
"Application"
437+
],
411438
"Time Synchronization": [
412439
"TrustedTimeSource",
413440
"DefaultNTP",
@@ -419,15 +446,21 @@
419446
"TimeZoneListMaxSize",
420447
"DSTOffsetListMaxSize"
421448
],
422-
"Temperature Control": ["SupportedTemperatureLevels"],
449+
"Temperature Control": [
450+
"SupportedTemperatureLevels"
451+
],
423452
"Dishwasher Mode": [
424453
"SupportedModes",
425454
"CurrentMode",
426455
"StartUpMode",
427456
"OnMode",
428457
"FeatureMap"
429458
],
430-
"Microwave Oven Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
459+
"Microwave Oven Mode": [
460+
"SupportedModes",
461+
"CurrentMode",
462+
"FeatureMap"
463+
],
431464
"Microwave Oven Control": [
432465
"CookTime",
433466
"MaxCookTime",
@@ -454,8 +487,16 @@
454487
"OnMode",
455488
"FeatureMap"
456489
],
457-
"RVC Clean Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
458-
"RVC Run Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
490+
"RVC Clean Mode": [
491+
"SupportedModes",
492+
"CurrentMode",
493+
"FeatureMap"
494+
],
495+
"RVC Run Mode": [
496+
"SupportedModes",
497+
"CurrentMode",
498+
"FeatureMap"
499+
],
459500
"Operational State": [
460501
"OperationalState",
461502
"OperationalError",
@@ -632,7 +673,10 @@
632673
"LevelValue",
633674
"FeatureMap"
634675
],
635-
"Air Quality": ["AirQuality", "FeatureMap"],
676+
"Air Quality": [
677+
"AirQuality",
678+
"FeatureMap"
679+
],
636680
"Electrical Energy Measurement": [
637681
"Accuracy",
638682
"CumulativeEnergyImported",
@@ -664,9 +708,15 @@
664708
"NeutralCurrent",
665709
"FeatureMap"
666710
],
667-
"Power Topology": ["FeatureMap"],
668-
"Valve Configuration and Control": ["RemainingDuration"],
669-
"Boolean State Configuration": ["CurrentSensitivityLevel"],
711+
"Power Topology": [
712+
"FeatureMap"
713+
],
714+
"Valve Configuration and Control": [
715+
"RemainingDuration"
716+
],
717+
"Boolean State Configuration": [
718+
"CurrentSensitivityLevel"
719+
],
670720
"Water Heater Management": [
671721
"HeaterTypes",
672722
"HeatDemand",
@@ -677,17 +727,35 @@
677727
"FeatureMap",
678728
"ClusterRevision"
679729
],
680-
"Water Heater Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
681-
"Wi-Fi Network Management": ["SSID", "PassphraseSurrogate"],
730+
"Water Heater Mode": [
731+
"SupportedModes",
732+
"CurrentMode",
733+
"FeatureMap"
734+
],
735+
"Wi-Fi Network Management": [
736+
"SSID",
737+
"PassphraseSurrogate"
738+
],
682739
"Thread Network Directory": [
683740
"PreferredExtendedPanID",
684741
"ThreadNetworks",
685742
"ThreadNetworkTableSize"
686743
],
687-
"Service Area": ["CurrentArea", "EstimatedEndTime", "FeatureMap"]
744+
"Service Area": [
745+
"CurrentArea",
746+
"EstimatedEndTime",
747+
"FeatureMap"
748+
]
688749
},
689750
"defaultReportingPolicy": "mandatory",
690-
"ZCLDataTypes": ["ARRAY", "BITMAP", "ENUM", "NUMBER", "STRING", "STRUCT"],
751+
"ZCLDataTypes": [
752+
"ARRAY",
753+
"BITMAP",
754+
"ENUM",
755+
"NUMBER",
756+
"STRING",
757+
"STRUCT"
758+
],
691759
"fabricHandling": {
692760
"automaticallyCreateFields": true,
693761
"indexFieldId": 254,
@@ -697,4 +765,4 @@
697765
"uiOptions": {
698766
"showProfileId": false
699767
}
700-
}
768+
}

0 commit comments

Comments
 (0)