aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/Bridge')
-rw-r--r--libraries/Bridge/examples/Process/Process.ino19
1 files changed, 10 insertions, 9 deletions
diff --git a/libraries/Bridge/examples/Process/Process.ino b/libraries/Bridge/examples/Process/Process.ino
index f954646..248db39 100644
--- a/libraries/Bridge/examples/Process/Process.ino
+++ b/libraries/Bridge/examples/Process/Process.ino
@@ -1,24 +1,25 @@
#include <Process.h>
-void brk() {
- Bridge.print((char)3);
- Bridge.find("#");
-}
-
void setup() {
+ pinMode(13,OUTPUT);
+ digitalWrite(13,LOW);
+
+ Serial.begin(9600);
Bridge.begin();
+
+ digitalWrite(13,HIGH);
+ delay(2000);
Process p;
p.begin("curl");
p.addParameter("http://arduino.cc/asciilogo.txt");
p.run();
- String res = "";
- while (p.IO.available()>0) {
- p.IO.read();
+ while (p.available()>0) {
+ char c = p.read();
+ Serial.print(c);
}
}
void loop() {
}
-