/// <summary> /// Connect or Reconnect to the codec device if not currently connected. /// </summary> public void Connect() { if (!Connected) { Connected = clientControl.Connect(codecData.ComHostname, codecData.Port, codecData.ComUsername, codecData.ComPassword); if (Connected) { ChangeState(eCallState.Idle); } } }
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"); } }