aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/examples/Process/Process.ino
diff options
context:
space:
mode:
authorFederico Fissore <f.fissore@arduino.cc>2013-05-09 11:14:59 +0200
committerFederico Fissore <f.fissore@arduino.cc>2013-05-09 11:15:36 +0200
commitf12d265653719924d59c774312ff506dc16ea261 (patch)
treee6f099dcd4ad103177cab601daa5d7319450ba84 /libraries/Bridge/examples/Process/Process.ino
parent48eb4551dcde6eb40574d1d7cb41075c09339ccc (diff)
Bridge lib moved bridge branch embedded into ide discovery branch
Diffstat (limited to 'libraries/Bridge/examples/Process/Process.ino')
-rw-r--r--libraries/Bridge/examples/Process/Process.ino24
1 files changed, 24 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..f954646
--- /dev/null
+++ b/libraries/Bridge/examples/Process/Process.ino
@@ -0,0 +1,24 @@
+#include <Process.h>
+
+void brk() {
+ Bridge.print((char)3);
+ Bridge.find("#");
+}
+
+void setup() {
+ Bridge.begin();
+
+ Process p;
+ p.begin("curl");
+ p.addParameter("http://arduino.cc/asciilogo.txt");
+ p.run();
+
+ String res = "";
+ while (p.IO.available()>0) {
+ p.IO.read();
+ }
+}
+
+void loop() {
+}
+