コード例 #1
0
        public KNXmessage Process(FaHDevice atHomeDevice)
        {
            if (PropertyControl != FAHFunctionPropertyCommand.PropertyControlTypes.AssignConn)
            {
                throw new InvalidCastException();
            }

            int ChannelIndex = ObjectID;
            int propIndex    = PropertyID;

            if (propIndex == 1) //Description
            {
                atHomeDevice.WriteChannelDescription(ChannelIndex, propIndex, Description);
            }
            else
            {
                throw new Exception();
            }

            return(CreateEmptySuccessMessage(false));
        }
コード例 #2
0
 public override bool SaveToDevice(ref FaHDevice faHDevice, out bool moreIndices)
 {
     moreIndices = false;
     faHDevice.WriteChannelDescription(ObjectID, PropertyID, Description);
     return(true);
 }