diff options
Diffstat (limited to 'libraries/Bridge/examples/Process/Process.ino')
-rw-r--r-- | libraries/Bridge/examples/Process/Process.ino | 24 |
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() { +} + |