Skip to content

Commit f767218

Browse files
committed
Added EndpointUniqueId support in subdevice example.
1 parent de31967 commit f767218

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/bridge-app/asr/subdevice/SubDeviceManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extern "C" {
6666
#define ZCL_ON_OFF_CLUSTER_REVISION (4u)
6767

6868
int AddDeviceEndpoint(SubDevice * dev, EmberAfEndpointType * ep, const Span<const EmberAfDeviceType> & deviceTypeList,
69-
const Span<DataVersion> & dataVersionStorage, chip::EndpointId parentEndpointId);
69+
const Span<DataVersion> & dataVersionStorage, chip::CharSpan epUniqueId, chip::EndpointId parentEndpointId);
7070
CHIP_ERROR RemoveDeviceEndpoint(SubDevice * dev);
7171
Protocols::InteractionModel::Status HandleReadBridgedDeviceBasicAttribute(SubDevice * dev, chip::AttributeId attributeId,
7272
uint8_t * buffer, uint16_t maxReadLength);

examples/bridge-app/asr/subdevice/subdevice_test.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ void Sync_SubDevice_test()
132132

133133
// Add lights 1..4 --> will be mapped to ZCL endpoints 3..6
134134
AddDeviceEndpoint(&gLight1, &bridgedLightEndpoint, Span<const EmberAfDeviceType>(gBridgedOnOffDeviceTypes),
135-
Span<DataVersion>(gLight1DataVersions), 1);
135+
Span<DataVersion>(gLight1DataVersions), chip::CharSpan(), 1);
136136
AddDeviceEndpoint(&gLight2, &bridgedLightEndpoint, Span<const EmberAfDeviceType>(gBridgedOnOffDeviceTypes),
137-
Span<DataVersion>(gLight2DataVersions), 1);
137+
Span<DataVersion>(gLight2DataVersions), chip::CharSpan(), 1);
138138
AddDeviceEndpoint(&gLight3, &bridgedLightEndpoint, Span<const EmberAfDeviceType>(gBridgedOnOffDeviceTypes),
139-
Span<DataVersion>(gLight3DataVersions), 1);
139+
Span<DataVersion>(gLight3DataVersions), chip::CharSpan(), 1);
140140
AddDeviceEndpoint(&gLight4, &bridgedLightEndpoint, Span<const EmberAfDeviceType>(gBridgedOnOffDeviceTypes),
141-
Span<DataVersion>(gLight4DataVersions), 1);
141+
Span<DataVersion>(gLight4DataVersions), chip::CharSpan(), 1);
142142
}
143143

144144
void Add_SubDevice_test()
@@ -147,7 +147,7 @@ void Add_SubDevice_test()
147147
gLight2.SetChangeCallback(&HandleDeviceStatusChanged);
148148
// Re-add Light 2 -- > will be mapped to ZCL endpoint 7
149149
AddDeviceEndpoint(&gLight2, &bridgedLightEndpoint, Span<const EmberAfDeviceType>(gBridgedOnOffDeviceTypes),
150-
Span<DataVersion>(gLight2DataVersions), 1);
150+
Span<DataVersion>(gLight2DataVersions), chip::CharSpan(), 1);
151151
}
152152

153153
void Remove_SubDevice_test()

0 commit comments

Comments
 (0)