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

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

            atHomeDevice.WriteRoomInfo(ChannelIndex, PropertyID, Room, Xcoords, Ycoords);

            return(CreateEmptySuccessMessage(hasMoreIndices));
        }
コード例 #2
0
ファイル: FPSR_RoomInfo.cs プロジェクト: roel80/FreeAtHome
 public override bool SaveToDevice(ref FaHDevice faHDevice, out bool moreIndices)
 {
     moreIndices = false;
     faHDevice.WriteRoomInfo(ObjectID, PropertyID, Room, Xcoords, Ycoords);
     return(true);
 }