From fecbacf33885e97e77f7949a4abb6133d1873f29 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 16 May 2013 10:28:00 +0200 Subject: Fixed Process example --- libraries/Bridge/examples/Process/Process.ino | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'libraries/Bridge/examples') 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 -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() { } - -- cgit v1.2.3-18-g5258