private void TestSshClient() { SshClientControl client = new SshClientControl(); client.RxEvent += client_RxEvent; if (client.Connect("r-a104d-dmps3.mesa.gmu.edu", 22, "admin", "Mason1972")) { CrestronConsole.PrintLine("Connected!"); client.SendCommand("ver -v\r\n"); } }
/// <summary> /// Sends the recall preset command to the device for the requested preset. /// </summary> /// <param name="presetNum">The target preset number to recall</param> /// <exception cref="InvalidOperationException">If the device is not yet connected.</exception> public void RecallPreset(int presetNum) { if (Connected) { clientControl.SendCommand(String.Format("vtc camera preset {0}\u000D\u000A", presetNum)); } else { throw new InvalidOperationException("Codec device not connected."); } }