Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 internal override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(IdentifyTime, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     ArmNotification = deserializer.Deserialize <byte>(ZclDataType.Get(DataType.ENUMERATION_8_BIT));
 }
Exemplo n.º 5
0
 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));
 }
Exemplo n.º 8
0
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(GroupID, ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Exemplo n.º 9
0
 public override void Deserialize(ZclFieldDeserializer deserializer)
 {
     GroupID = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 14
0
        public override void Serialize(ZclFieldSerializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(Status, ZclDataType.Get(DataType.ZDO_STATUS));
        }
Exemplo n.º 15
0
 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 21
0
 public override void Serialize(ZclFieldSerializer serializer)
 {
     serializer.Serialize(ArmNotification, ZclDataType.Get(DataType.ENUMERATION_8_BIT));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
        }
Exemplo n.º 25
0
 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));
        }
Exemplo n.º 27
0
 internal override void Deserialize(ZclFieldDeserializer deserializer)
 {
     IdentifyTime = deserializer.Deserialize <ushort>(ZclDataType.Get(DataType.UNSIGNED_16_BIT_INTEGER));
 }
Exemplo n.º 28
0
 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 30
0
 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));
 }