mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-12 23:08:52 +01:00
27 lines
381 B
C++
27 lines
381 B
C++
|
|
#include <Bridge.h>
|
|
#include <HttpClient.h>
|
|
|
|
void setup() {
|
|
pinMode(13, OUTPUT);
|
|
digitalWrite(13, LOW);
|
|
Bridge.begin();
|
|
Serial.begin(9600);
|
|
while(!Serial);
|
|
}
|
|
|
|
void loop() {
|
|
HttpClient client;
|
|
client.get("http://arduino.cc/asciilogo.txt");
|
|
|
|
while (client.available()) {
|
|
char c = client.read();
|
|
Serial.print(c);
|
|
}
|
|
Serial.flush();
|
|
|
|
delay(5000);
|
|
}
|
|
|
|
|