2013-05-09 11:14:59 +02:00
|
|
|
|
2013-07-06 15:12:01 +02:00
|
|
|
#include <Bridge.h>
|
2013-05-09 11:14:59 +02:00
|
|
|
#include <HttpClient.h>
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
pinMode(13, OUTPUT);
|
|
|
|
digitalWrite(13, LOW);
|
|
|
|
Bridge.begin();
|
2013-07-05 15:06:37 +02:00
|
|
|
Serial.begin(9600);
|
|
|
|
while(!Serial);
|
2013-05-09 11:14:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void loop() {
|
|
|
|
HttpClient client;
|
2013-07-05 15:06:37 +02:00
|
|
|
client.get("http://arduino.cc/asciilogo.txt");
|
2013-05-09 11:14:59 +02:00
|
|
|
|
2013-07-05 15:06:37 +02:00
|
|
|
while (client.available()) {
|
|
|
|
char c = client.read();
|
|
|
|
Serial.print(c);
|
|
|
|
}
|
|
|
|
Serial.flush();
|
2013-05-09 11:14:59 +02:00
|
|
|
|
|
|
|
delay(5000);
|
|
|
|
}
|
|
|
|
|
|
|
|
|