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

Changes to integrate latest core updates to WiFly branch

This commit is contained in:
mlafauci
2011-08-31 10:34:51 +02:00
parent 9785b99cba
commit 00b945d869
23 changed files with 136 additions and 251 deletions

View File

@ -9,7 +9,7 @@
* Analog inputs attached to pins A0 through A5 (optional)
created 13 July 2010
by Domenico La Fauci
by dlf (Metodo2 srl)
modified 5 June 2011
by Tom Igoe
*/
@ -22,7 +22,7 @@ char ssid[] = "yourNetwork";
char pass[] = "secretpassword";
int status = WL_IDLE_STATUS;
Server server(80);
WiFiServer server(80);
void setup() {
// initialize serial:
@ -39,7 +39,7 @@ void setup() {
else {
server.begin();
Serial.print("Connected to wifi. My address:");
IPAddress myAddress = WiFi.localIp();
IPAddress myAddress = WiFi.localIP();
Serial.print(myAddress[0]);
Serial.print(".");
Serial.print(myAddress[1]);
@ -53,7 +53,7 @@ void setup() {
void loop() {
// listen for incoming clients
Client client = server.available();
WiFiClient client = server.available();
if (client) {
// an http request ends with a blank line
boolean currentLineIsBlank = true;