public void X10Command(string bszCommand, EX10Command eCommand, int lAddress, EX10Key EKeyState, int lSequence, EX10Comm eCommandType, object varTimestamp) { if ((EKeyState == EX10Key.X10KEY_ON || EKeyState == EX10Key.X10KEY_REPEAT) && lSequence != 2) { if (_x10UseChannelControl && (lAddress != ((_x10Channel - 1) * 16))) { return; } int keypress = (int)Enum.Parse(typeof(EX10Command), eCommand.ToString()); if (X10KeyPressed != null) { X10KeyPressed(keypress); } if (_inputHandler != null) { _inputHandler.MapAction(keypress); } if (_logVerbose) { Log.Info("X10Remote: Command Start --------------------------------------------"); Log.Info("X10Remote: bszCommand = {0}", bszCommand.ToString()); Log.Info("X10Remote: eCommand = {0} - {1}", keypress, eCommand.ToString()); Log.Info("X10Remote: eCommandType = {0}", eCommandType.ToString()); Log.Info("X10Remote: eKeyState = {0}", EKeyState.ToString()); Log.Info("X10Remote: lAddress = {0}", lAddress.ToString()); Log.Info("X10Remote: lSequence = {0}", lSequence.ToString()); Log.Info("X10Remote: varTimestamp = {0}", varTimestamp.ToString()); Log.Info("X10Remote: Command End ----------------------------------------------"); } } }
public void X10Command(string bszCommand, EX10Command eCommand, int lAddress, EX10Key EKeyState, int lSequence, EX10Comm eCommandType, object varTimestamp) { if ((EKeyState == EX10Key.X10KEY_ON || EKeyState == EX10Key.X10KEY_REPEAT) && lSequence != 2) { if (_x10UseChannelControl && (lAddress != ((_x10Channel - 1) * 16))) { return; } int keypress = (int)Enum.Parse(typeof (EX10Command), eCommand.ToString()); if (X10KeyPressed != null) { X10KeyPressed(keypress); } if (_inputHandler != null) { _inputHandler.MapAction(keypress); } if (_logVerbose) { Log.Info("X10Remote: Command Start --------------------------------------------"); Log.Info("X10Remote: bszCommand = {0}", bszCommand.ToString()); Log.Info("X10Remote: eCommand = {0} - {1}", keypress, eCommand.ToString()); Log.Info("X10Remote: eCommandType = {0}", eCommandType.ToString()); Log.Info("X10Remote: eKeyState = {0}", EKeyState.ToString()); Log.Info("X10Remote: lAddress = {0}", lAddress.ToString()); Log.Info("X10Remote: lSequence = {0}", lSequence.ToString()); Log.Info("X10Remote: varTimestamp = {0}", varTimestamp.ToString()); Log.Info("X10Remote: Command End ----------------------------------------------"); } } }