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)); }
public override bool SaveToDevice(ref FaHDevice faHDevice, out bool moreIndices) { moreIndices = false; faHDevice.WriteChannelDescription(ObjectID, PropertyID, Description); return(true); }