internal override void Deserialize(ZclFieldDeserializer deserializer)
 {
     Status  = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.ENUMERATION_8_BIT));
     GroupId = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
     SceneId = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
 }
Beispiel #2
0
 internal override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(IdentifyTime, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Beispiel #3
0
 internal override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(GroupID, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
     serializer.Serialize(SceneID, ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
 }
Beispiel #4
0
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     ArmNotification = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.ENUMERATION_8_BIT));
 }
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize((byte)0, ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
 }
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     Level          = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
     TransitionTime = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
 internal override void Deserialize(ZclFieldDeserializer deserializer)
 {
     NotificationScheme = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
     NotificationFlags  = deserializer.Deserialize <int>(ZclDataType.Get(DataType.BITMAP_32_BIT));
 }
Beispiel #8
0
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(GroupID, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Beispiel #9
0
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     GroupID = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Beispiel #10
0
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(RateX, ZclDataType.Get(DataType.SIGNED_16_BIT_INTEGER));
     serializer.Serialize(RateY, ZclDataType.Get(DataType.SIGNED_16_BIT_INTEGER));
 }
Beispiel #11
0
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     RateX = deserializer.Deserialize <short>(ZclDataType.Get(DataType.SIGNED_16_BIT_INTEGER));
     RateY = deserializer.Deserialize <short>(ZclDataType.Get(DataType.SIGNED_16_BIT_INTEGER));
 }
Beispiel #12
0
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     StepMode       = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.ENUMERATION_8_BIT));
     StepSize       = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
     TransitionTime = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Beispiel #13
0
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(StepMode, ZclDataType.Get(DataType.ENUMERATION_8_BIT));
     serializer.Serialize(StepSize, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
     serializer.Serialize(TransitionTime, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Beispiel #14
0
        public override void Serialize(ZclFieldSerializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(Status, ZclDataType.Get(DataType.ZDO_STATUS));
        }
 internal override void Deserialize(ZclFieldDeserializer deserializer)
 {
     Header          = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.BITMAP_8_BIT));
     NumberResponses = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
     TargetAddress   = deserializer.Deserialize <IeeeAddress>(ZclDataType.Get(DataType.IEEE_ADDRESS));
 }
Beispiel #16
0
 internal override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(Records, ZclDataType.Get(DataType.N_X_ATTRIBUTE_RECORD));
 }
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(Level, ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
     serializer.Serialize(TransitionTime, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Beispiel #18
0
 internal override void Deserialize(ZclFieldDeserializer deserializer)
 {
     Records = deserializer.Deserialize <List <AttributeRecord> >(ZclDataType.Get(DataType.N_X_ATTRIBUTE_RECORD));
 }
 internal override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(NotificationScheme, ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
     serializer.Serialize(NotificationFlags, ZclDataType.Get(DataType.BITMAP_32_BIT));
 }
Beispiel #20
0
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(GroupID, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
     serializer.Serialize(GroupName, ZclDataType.Get(DataType.CHARACTER_STRING));
 }
Beispiel #21
0
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(ArmNotification, ZclDataType.Get(DataType.ENUMERATION_8_BIT));
 }
Beispiel #22
0
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     GroupID   = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
     GroupName = deserializer.Deserialize <string>(ZclDataType.Get(DataType.CHARACTER_STRING));
 }
Beispiel #23
0
        // Attribute initialisation
        protected override Dictionary <ushort, ZclAttribute> InitializeAttributes()
        {
            Dictionary <ushort, ZclAttribute> attributeMap = new Dictionary <ushort, ZclAttribute>(4);

            ZclClusterType flowmeasurement = ZclClusterType.GetValueById(ClusterType.FLOW_MEASUREMENT);

            attributeMap.Add(ATTR_MEASUREDVALUE, new ZclAttribute(flowmeasurement, ATTR_MEASUREDVALUE, "MeasuredValue", ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER), true, true, false, true));
            attributeMap.Add(ATTR_MINMEASUREDVALUE, new ZclAttribute(flowmeasurement, ATTR_MINMEASUREDVALUE, "MinMeasuredValue", ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER), true, true, false, false));
            attributeMap.Add(ATTR_MAXMEASUREDVALUE, new ZclAttribute(flowmeasurement, ATTR_MAXMEASUREDVALUE, "MaxMeasuredValue", ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER), true, true, false, false));
            attributeMap.Add(ATTR_TOLERANCE, new ZclAttribute(flowmeasurement, ATTR_TOLERANCE, "Tolerance", ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER), false, true, false, true));

            return(attributeMap);
        }
        internal override void Serialize(ZclFieldSerializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(NwkAddrOfInterest, ZclDataType.Get(DataType.NWK_ADDRESS));
        }
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     deserializer.Deserialize(ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
 }
        internal override void Deserialize(ZclFieldDeserializer deserializer)
        {
            base.Deserialize(deserializer);

            NwkAddrOfInterest = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.NWK_ADDRESS));
        }
Beispiel #27
0
 internal override void Deserialize(ZclFieldDeserializer deserializer)
 {
     IdentifyTime = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
 internal override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(Header, ZclDataType.Get(DataType.BITMAP_8_BIT));
     serializer.Serialize(NumberResponses, ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
     serializer.Serialize(TargetAddress, ZclDataType.Get(DataType.IEEE_ADDRESS));
 }
Beispiel #29
0
 internal override void Deserialize(ZclFieldDeserializer deserializer)
 {
     GroupID = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
     SceneID = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
 }
 internal override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(Status, ZclDataType.Get(DataType.ENUMERATION_8_BIT));
     serializer.Serialize(GroupId, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
     serializer.Serialize(SceneId, ZclDataType.Get(DataType.UNSIGNED_8_BIT_INTEGER));
 }