コード例 #1
0
 public void setIAS_CIE_Address(byte[] IAS_CIE_Address, IEndPointRequestContext context)
     throws ApplianceException, ServiceClusterException {
   int attrId = 16;
   int size = 3;
   size += ZclDataTypeIEEEAddress.zclSize(IAS_CIE_Address.length);
   IZclFrame zclFrame = new ZclFrame(0, size);
   zclFrame.appendUInt16(attrId);
   zclFrame.appendUInt8(ZclDataTypeIEEEAddress.ZCL_DATA_TYPE);
   ZclDataTypeIEEEAddress.zclSerialize(zclFrame, IAS_CIE_Address);
   issueSet(ZclIASZoneServer.CLUSTER_ID, zclFrame, attrId, context);
 }
コード例 #2
0
 public byte[] getIAS_CIE_Address(IEndPointRequestContext context)
     throws ApplianceException, ServiceClusterException {
   if (context != null) {
     byte[] objectResult = null;
     objectResult =
         ((byte[]) getValidCachedAttributeObject(16, context.getMaxAgeForAttributeValues()));
     if (objectResult != null) {
       return objectResult;
     }
   }
   IZclFrame zclFrame = readAttribute(16, context);
   byte[] v = ZclDataTypeIEEEAddress.zclParse(zclFrame);
   setCachedAttributeObject(16, v);
   return v;
 }