Exemplo n.º 1
0
        public KNXmessage Process(FaHDevice atHomeDevice)
        {
            if (PropertyControl != FAHFunctionPropertyCommand.PropertyControlTypes.WriteIconId)
            {
                throw new InvalidCastException();
            }

            int  ChannelIndex   = ObjectID;
            int  propIndex      = PropertyID;
            bool hasMoreIndices = false;

            atHomeDevice.WriteIconInfo(ChannelIndex, PropertyID, Icon);

            return(CreateEmptySuccessMessage(hasMoreIndices));
        }
Exemplo n.º 2
0
 public override bool SaveToDevice(ref FaHDevice faHDevice, out bool moreIndices)
 {
     moreIndices = false;
     faHDevice.WriteIconInfo(ObjectID, PropertyID, Icon);
     return(true);
 }