Arduino WiFi Library


This library allows you to connect to the internet with Arduino and WiFi Shield.
It can work as a server or as a client.
The library supports WEP and WPA2 Personal encryption, but not WPA2 Enterprise. Note that if the SSID is not broadcast, the shield cannot connect.

Arduino communicates with the WiFi shield through the SPI bus:
  • on Arduino Uno digital pins 11, 12 and 13
  • on Arduino Mega 50,51,52
On both boards, pin 10 is used as SS. On the Mega, the hardware SS pin, 53, is not used but it must be kept as an output or the SPI interface won't work. Digital pin 7 is used as a handshake pin between the Wifi shield and the Arduino, and should not be used. Some functions are the same of Ethernet library.

Related Functions

WiFi Functions

Client Class

IPAddress Class

Server Class

UDP Class

Based on the reference originally written by Arduino Community, and