Skip to content

Commit 9877e35

Browse files
committed
Implementing example SimpleZigBeeConsole using SimpleZigBeeApi. Fixed write command.
1 parent 485e579 commit 9877e35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zigbee-api/src/main/java/org/bubblecloud/zigbee/simple/SimpleZigBeeApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public Future<CommandResult> write(ZigBeeDevice device, int clusterId, int attri
350350
command.setClusterId(clusterId);
351351

352352
final WriteAttributeRecord record = new WriteAttributeRecord();
353-
record.setAttributeIdentifier(0);
353+
record.setAttributeIdentifier(attributeId);
354354
record.setAttributeDataType(attribute.getZigBeeType().getId());
355355
record.setAttributeValue(value);
356356
command.setRecords(Collections.singletonList(record));

0 commit comments

Comments
 (0)