1 package iotruntime.zigbee;
5 /** Zigbee Message Zcl Read Attributes Response.
7 * @author Ali Younis <ayounis @ uci.edu>
11 public final class IoTZigbeeMessageZclReadAttributesResponse extends IoTZigbeeMessage {
13 public static class Attribute {
16 private int attributeId;
18 private boolean successOrFail;
24 public Attribute(int _attributeId, int _dataType, boolean _successOrFail, byte[] _data) {
25 attributeId = _attributeId;
27 successOrFail = _successOrFail;
33 * getAttributeId() method that returns attribute id
37 public int getAttributeId() {
43 * getDataType() method that returns attribute data type
47 public int getDataType() {
53 * getSuccessOrFail() method is if the configure for this attribute failed or succeeded
57 public boolean getSuccessOrFail() {
63 * getData() method that returns attribute data
67 public byte[] getData() {
73 private int clusterId;
74 private int profileId;
75 private List <Attribute> attributes;
80 public IoTZigbeeMessageZclReadAttributesResponse(int _packetId, int _clusterId, int _profileId, List <Attribute> _attributes) {
83 clusterId = _clusterId;
84 profileId = _profileId;
85 attributes = _attributes;
89 * getClusterId() method that returns the cluster id
93 public int getClusterId() {
98 * getProfileId() method that returns the profile id
102 public int getProfileId() {
107 * getAttributes() method that returns all attributes data
109 * @return List <Attribute>
111 public List <Attribute> getAttributes() {