@Test public void testReceive() { int[] packet = getPacketData("00 FF 01"); ManagementPermitJoiningRequest request = new ManagementPermitJoiningRequest(255, true); request.setDestinationAddress(new ZigBeeEndpointAddress(0)); DefaultSerializer serializer = new DefaultSerializer(); ZclFieldSerializer fieldSerializer = new ZclFieldSerializer(serializer); request.serialize(fieldSerializer); assertTrue(Arrays.equals(packet, serializer.getPayload())); }
@Override public void serialize(final ZclFieldSerializer serializer) { super.serialize(serializer); serializer.serialize(permitDuration, ZclDataType.UNSIGNED_8_BIT_INTEGER); serializer.serialize(tcSignificance, ZclDataType.BOOLEAN); }
ManagementPermitJoiningRequest extends ZdoRequest implements ZigBeeTransactionMatcher { @Override public void serialize(final ZclFieldSerializer serializer) { super.serialize(serializer); serializer.serialize(permitDuration, ZclDataType.UNSIGNED_8_BIT_INTEGER); serializer.serialize(tcSignificance, ZclDataType.BOOLEAN); } }
ManagementPermitJoiningRequest extends ZdoRequest implements ZigBeeTransactionMatcher { @Override public void serialize(final ZclFieldSerializer serializer) { super.serialize(serializer); serializer.serialize(permitDuration, ZclDataType.UNSIGNED_8_BIT_INTEGER); serializer.serialize(tcSignificance, ZclDataType.BOOLEAN); } @Deprecated  ManagementPermitJoiningRequest();  ManagementPermitJoiningRequest(
            Integer permitDuration,
            Boolean tcSignificance); }
ManagementPermitJoiningRequest extends ZdoRequest implements ZigBeeTransactionMatcher { @Override public void serialize(final ZclFieldSerializer serializer) { super.serialize(serializer); serializer.serialize(permitDuration, ZclDataType.UNSIGNED_8_BIT_INTEGER); serializer.serialize(tcSignificance, ZclDataType.BOOLEAN); } @Deprecated  ManagementPermitJoiningRequest();  ManagementPermitJoiningRequest(
            Integer permitDuration,
            Boolean tcSignificance); Integer getPermitDuration(); @Deprecated void setPermitDuration(final Integer permitDuration); Boolean getTcSignificance(); @Deprecated void setTcSignificance(final Boolean tcSignificance); @Override void serialize(final ZclFieldSerializer serializer); @Override void deserialize(final ZclFieldDeserializer deserializer); @Override boolean isTransactionMatch(ZigBeeCommand request, ZigBeeCommand response); @Override String toString(); }
ManagementPermitJoiningRequest extends ZdoRequest implements ZigBeeTransactionMatcher { @Override public void serialize(final ZclFieldSerializer serializer) { super.serialize(serializer); serializer.serialize(permitDuration, ZclDataType.UNSIGNED_8_BIT_INTEGER); serializer.serialize(tcSignificance, ZclDataType.BOOLEAN); } @Deprecated  ManagementPermitJoiningRequest();  ManagementPermitJoiningRequest(
            Integer permitDuration,
            Boolean tcSignificance); Integer getPermitDuration(); @Deprecated void setPermitDuration(final Integer permitDuration); Boolean getTcSignificance(); @Deprecated void setTcSignificance(final Boolean tcSignificance); @Override void serialize(final ZclFieldSerializer serializer); @Override void deserialize(final ZclFieldDeserializer deserializer); @Override boolean isTransactionMatch(ZigBeeCommand request, ZigBeeCommand response); @Override String toString(); static int CLUSTER_ID; }