1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-22 08:22:04 +03:00

Fix compilation errors on examples and adapt API to new Ethernet functions

This commit is contained in:
mlafauci
2011-05-18 15:37:29 +02:00
parent 4f7e2f1201
commit 0b8d3f6421
16 changed files with 205 additions and 42 deletions

View File

@ -19,12 +19,11 @@
char ssid[32] = { 0 };
int status = WL_IDLE_STATUS;
IPAddress server(74,125,232,115); // Google
//byte server[] = { 173,194,33,104 }; // Google
// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
Client client(server, 80);
Client client;
int startWiFiWpa()
{
@ -53,7 +52,7 @@ void setup() {
{
Serial.println("\nStarting connection...");
// if you get a connection, report back via serial:
if (client.connect()) {
if (client.connect(server, 80)) {
Serial.println("connected");
// Make a HTTP request:
client.println("GET /search?q=arduino HTTP/1.0");