4 /** Zigbee Message Zcl Read Attributes Response.
6 * @author Ali Younis <ayounis @ uci.edu>
10 public class IoTZigbeeMessageZclReadAttributesResponse extends IoTZigbeeMessage {
12 static class Attribute {
15 private int attributeId;
17 private boolean successOrFail;
23 public Attribute(int _attributeId, int _dataType, boolean _successOrFail, byte[] _data) {
24 attributeId = _attributeId;
26 successOrFail = _successOrFail;
32 * getAttributeId() method that returns attribute id
36 public int getAttributeId() {
42 * getDataType() method that returns attribute data type
46 public int getDataType() {
52 * getSuccessOrFail() method is if the configure for this attribute failed or succeeded
56 public boolean getSuccessOrFail() {
62 * getData() method that returns attribute data
66 public byte[] getData() {
72 private int clusterId;
73 private int profileId;
74 private List <Attribute> attributes;
79 public IoTZigbeeMessageZclReadAttributesResponse(int _packetId, int _clusterId, int _profileId, List <Attribute> _attributes) {
82 clusterId = _clusterId;
83 profileId = _profileId;
84 attributes = _attributes;
88 * getClusterId() method that returns the cluster id
92 public int getClusterId() {
97 * getProfileId() method that returns the profile id
101 public int getProfileId() {
106 * getAttributes() method that returns all attributes data
108 * @return List <Attribute>
110 public List <Attribute> getAttributes() {