@@ -53090,7 +53090,6 @@ public static class ThreadBorderRouterManagementCluster extends BaseChipCluster
53090
53090
private static final long BORDER_AGENT_ID_ATTRIBUTE_ID = 1L;
53091
53091
private static final long THREAD_VERSION_ATTRIBUTE_ID = 2L;
53092
53092
private static final long INTERFACE_ENABLED_ATTRIBUTE_ID = 3L;
53093
- private static final long THREAD_NODE_ATTRIBUTE_ID = 4L;
53094
53093
private static final long ACTIVE_DATASET_TIMESTAMP_ATTRIBUTE_ID = 5L;
53095
53094
private static final long GENERATED_COMMAND_LIST_ATTRIBUTE_ID = 65528L;
53096
53095
private static final long ACCEPTED_COMMAND_LIST_ATTRIBUTE_ID = 65529L;
@@ -53205,70 +53204,10 @@ public void onResponse(StructType invokeStructValue) {
53205
53204
}}, commandId, commandArgs, timedInvokeTimeoutMs);
53206
53205
}
53207
53206
53208
- public void topologyRequest(TopologyResponseCallback callback, Integer count, Integer startIndex, Integer snapshot) {
53209
- topologyRequest(callback, count, startIndex, snapshot, 0);
53210
- }
53211
-
53212
- public void topologyRequest(TopologyResponseCallback callback, Integer count, Integer startIndex, Integer snapshot, int timedInvokeTimeoutMs) {
53213
- final long commandId = 5L;
53214
-
53215
- ArrayList<StructElement> elements = new ArrayList<>();
53216
- final long countFieldID = 0L;
53217
- BaseTLVType counttlvValue = new UIntType(count);
53218
- elements.add(new StructElement(countFieldID, counttlvValue));
53219
-
53220
- final long startIndexFieldID = 1L;
53221
- BaseTLVType startIndextlvValue = new UIntType(startIndex);
53222
- elements.add(new StructElement(startIndexFieldID, startIndextlvValue));
53223
-
53224
- final long snapshotFieldID = 2L;
53225
- BaseTLVType snapshottlvValue = new UIntType(snapshot);
53226
- elements.add(new StructElement(snapshotFieldID, snapshottlvValue));
53227
-
53228
- StructType commandArgs = new StructType(elements);
53229
- invoke(new InvokeCallbackImpl(callback) {
53230
- @Override
53231
- public void onResponse(StructType invokeStructValue) {
53232
- final long snapshotFieldID = 0L;
53233
- Integer snapshot = null;
53234
- final long numberOfDevicesFieldID = 1L;
53235
- Integer numberOfDevices = null;
53236
- final long threadTopologyFieldID = 2L;
53237
- ArrayList<ChipStructs.ThreadBorderRouterManagementClusterThreadNodeStruct> threadTopology = null;
53238
- for (StructElement element: invokeStructValue.value()) {
53239
- if (element.contextTagNum() == snapshotFieldID) {
53240
- if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
53241
- UIntType castingValue = element.value(UIntType.class);
53242
- snapshot = castingValue.value(Integer.class);
53243
- }
53244
- } else if (element.contextTagNum() == numberOfDevicesFieldID) {
53245
- if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
53246
- UIntType castingValue = element.value(UIntType.class);
53247
- numberOfDevices = castingValue.value(Integer.class);
53248
- }
53249
- } else if (element.contextTagNum() == threadTopologyFieldID) {
53250
- if (element.value(BaseTLVType.class).type() == TLVType.Array) {
53251
- ArrayType castingValue = element.value(ArrayType.class);
53252
- threadTopology = castingValue.map((elementcastingValue) -> ChipStructs.ThreadBorderRouterManagementClusterThreadNodeStruct.decodeTlv(elementcastingValue));
53253
- }
53254
- }
53255
- }
53256
- callback.onSuccess(snapshot, numberOfDevices, threadTopology);
53257
- }}, commandId, commandArgs, timedInvokeTimeoutMs);
53258
- }
53259
-
53260
53207
public interface DatasetResponseCallback extends BaseClusterCallback {
53261
53208
void onSuccess(byte[] dataset);
53262
53209
}
53263
53210
53264
- public interface TopologyResponseCallback extends BaseClusterCallback {
53265
- void onSuccess(Integer snapshot, Integer numberOfDevices, ArrayList<ChipStructs.ThreadBorderRouterManagementClusterThreadNodeStruct> threadTopology);
53266
- }
53267
-
53268
- public interface ThreadNodeAttributeCallback extends BaseAttributeCallback {
53269
- void onSuccess(ChipStructs.ThreadBorderRouterManagementClusterThreadNodeStruct value);
53270
- }
53271
-
53272
53211
public interface ActiveDatasetTimestampAttributeCallback extends BaseAttributeCallback {
53273
53212
void onSuccess(@Nullable Long value);
53274
53213
}
@@ -53393,32 +53332,6 @@ public void onSuccess(byte[] tlv) {
53393
53332
}, INTERFACE_ENABLED_ATTRIBUTE_ID, minInterval, maxInterval);
53394
53333
}
53395
53334
53396
- public void readThreadNodeAttribute(
53397
- ThreadNodeAttributeCallback callback) {
53398
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, THREAD_NODE_ATTRIBUTE_ID);
53399
-
53400
- readAttribute(new ReportCallbackImpl(callback, path) {
53401
- @Override
53402
- public void onSuccess(byte[] tlv) {
53403
- ChipStructs.ThreadBorderRouterManagementClusterThreadNodeStruct value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
53404
- callback.onSuccess(value);
53405
- }
53406
- }, THREAD_NODE_ATTRIBUTE_ID, true);
53407
- }
53408
-
53409
- public void subscribeThreadNodeAttribute(
53410
- ThreadNodeAttributeCallback callback, int minInterval, int maxInterval) {
53411
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, THREAD_NODE_ATTRIBUTE_ID);
53412
-
53413
- subscribeAttribute(new ReportCallbackImpl(callback, path) {
53414
- @Override
53415
- public void onSuccess(byte[] tlv) {
53416
- ChipStructs.ThreadBorderRouterManagementClusterThreadNodeStruct value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
53417
- callback.onSuccess(value);
53418
- }
53419
- }, THREAD_NODE_ATTRIBUTE_ID, minInterval, maxInterval);
53420
- }
53421
-
53422
53335
public void readActiveDatasetTimestampAttribute(
53423
53336
ActiveDatasetTimestampAttributeCallback callback) {
53424
53337
ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ACTIVE_DATASET_TIMESTAMP_ATTRIBUTE_ID);
0 commit comments