1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Bridge library to the 1.5 format

This commit is contained in:
Fede85
2013-09-06 15:38:07 +02:00
parent effb59da4b
commit 81338e245b
58 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#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);
}