1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +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

@ -6,10 +6,9 @@
A simple server is setup to exchange data.
created 13 July 2010
by Domenico La Fauci
by dlf (Metodo2 srl)
*/
#include <WiFi.h>
#include <IPAddress.h>
byte mac[6] = { 0 };
IPAddress ip;
@ -19,11 +18,11 @@ byte dataBuf[80] = { 0 };
char ssid[32] = { 0 };
int status = WL_IDLE_STATUS;
Server server(23);
WiFiServer server(23);
void printIpData()
{
ip = WiFi.localIp();
ip = WiFi.localIP();
Serial.print("IP: ");
Serial.print(ip[3],10);Serial.print(".");
@ -136,7 +135,7 @@ void loop()
if (status == WL_CONNECTED)
{
byte status = 0;
Client client = server.available(&status);
WiFiClient client = server.available(&status);
if (client) {
//Serial.print("Status: ");
//Serial.println(status, 16);