aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/examples/Process/Process.ino
blob: f954646ab5a793a3170c64aab781b790304f0687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <Process.h>

void brk() {
  Bridge.print((char)3);
  Bridge.find("#");
}

void setup() {
  Bridge.begin();
  
  Process p;
  p.begin("curl");
  p.addParameter("http://arduino.cc/asciilogo.txt");
  p.run();
  
  String res = "";
  while (p.IO.available()>0) {
    p.IO.read();
  }
}

void loop() {
}