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

Method NetworkMonitor

app/src/processing/app/NetworkMonitor.java:34–50  ·  view source on GitHub ↗
(BoardPort port)

Source from the content-addressed store, hash-verified

32 private int connectionAttempts;
33
34 public NetworkMonitor(BoardPort port) {
35 super(port);
36
37 onSendCommand(new ActionListener() {
38 public void actionPerformed(ActionEvent event) {
39 try {
40 OutputStream out = channel.getOutputStream();
41 out.write(textField.getText().getBytes());
42 out.write('\n');
43 out.flush();
44 } catch (IOException e) {
45 e.printStackTrace();
46 }
47 textField.setText("");
48 }
49 });
50 }
51
52 @Override
53 public boolean requiresAuthorization() {

Callers

nothing calls this directly

Calls 1

onSendCommandMethod · 0.45

Tested by

no test coverage detected