Skip to content

Commit ef9070e

Browse files
committed
Fixed Process example
1 parent 05b0fc5 commit ef9070e

File tree

1 file changed

+10
-9
lines changed
  • hardware/arduino/avr/libraries/Bridge/examples/Process

1 file changed

+10
-9
lines changed

hardware/arduino/avr/libraries/Bridge/examples/Process/Process.ino

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
#include <Process.h>
22

3-
void brk() {
4-
Bridge.print((char)3);
5-
Bridge.find("#");
6-
}
7-
83
void setup() {
4+
pinMode(13,OUTPUT);
5+
digitalWrite(13,LOW);
6+
7+
Serial.begin(9600);
98
Bridge.begin();
9+
10+
digitalWrite(13,HIGH);
11+
delay(2000);
1012

1113
Process p;
1214
p.begin("curl");
1315
p.addParameter("http://arduino.cc/asciilogo.txt");
1416
p.run();
1517

16-
String res = "";
17-
while (p.IO.available()>0) {
18-
p.IO.read();
18+
while (p.available()>0) {
19+
char c = p.read();
20+
Serial.print(c);
1921
}
2022
}
2123

2224
void loop() {
2325
}
24-

0 commit comments

Comments
 (0)