diff options
Diffstat (limited to 'libraries/Bridge/examples/Process/Process.ino')
-rw-r--r-- | libraries/Bridge/examples/Process/Process.ino | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libraries/Bridge/examples/Process/Process.ino b/libraries/Bridge/examples/Process/Process.ino new file mode 100644 index 0000000..248db39 --- /dev/null +++ b/libraries/Bridge/examples/Process/Process.ino @@ -0,0 +1,25 @@ +#include <Process.h> + +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(); + + while (p.available()>0) { + char c = p.read(); + Serial.print(c); + } +} + +void loop() { +} |