aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/examples/Process/Process.ino
blob: 248db396d9fa5d0cbf4f27b5da1921f443de34c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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() {
}