MCPcopy Index your code
hub / github.com/arduino/Arduino / open

Method open

app/src/processing/app/NetworkMonitor.java:62–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 @Override
63 public void open() throws Exception {
64 super.open();
65 this.connectionAttempts = 0;
66
67 JSch jSch = new JSch();
68 SSHClientSetupChainRing sshClientSetupChain = new SSHConfigFileSetup(new SSHPwdSetup());
69 session = sshClientSetupChain.setup(getBoardPort(), jSch);
70
71 session.setConfig("PreferredAuthentications", "publickey,keyboard-interactive,password");
72 session.setUserInfo(new NoInteractionUserInfo(PreferencesData.get(getAuthorizationKey())));
73 session.connect(30000);
74
75 tryConnect();
76 }
77
78 private void tryConnect() throws JSchException, IOException {
79 connectionAttempts++;

Callers

nothing calls this directly

Calls 6

setupMethod · 0.95
getMethod · 0.95
getAuthorizationKeyMethod · 0.95
tryConnectMethod · 0.95
getBoardPortMethod · 0.80
connectMethod · 0.80

Tested by

no test coverage detected