diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-05-16 10:28:00 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-05-16 10:28:00 +0200 |
commit | fecbacf33885e97e77f7949a4abb6133d1873f29 (patch) | |
tree | 133970c20c395bc8a654055bc3a03a5f604079fd /libraries | |
parent | fdba391eb6e7dd0103bda66faaef69a4b7b410d9 (diff) |
Fixed Process example
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/Bridge/examples/Process/Process.ino | 19 |
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() { } - |