Scan Networks
This example scans for 802.11b/g networks with the Arduino WiFi shield. Your Arduino Software (IDE) serial monitor will print out information about the board and the networks it can see. It will not connect to a network.
Hardware Required
Arduino WiFi Shield
Shield-compatible Arduino board
Circuit
The WiFi shield uses pins 10, 11, 12, and 13 for the SPI connection to the HDG104 module. Digital pin 4 is used to control the slave select pin on the SD card.
Open your serial monitor to view the networks the WiFi shield can see. The shield may not see as many networks as your computer.
image developed using Fritzing. For more circuit examples, see the Fritzing project page
In the above image, the board would be stacked below the WiFi shield.
Code
See Also:
WiFi library - Your reference for the WiFi Library.
WiFi Shield - Product details for the retired WiFi Shield.
Getting started - Getting started with the retired WiFi Shield.
Connect No Encryption - Demonstrates how to connect to an open network.
Connect With WEP - Demonstrates how to connect to a network that is encrypted with WEP.
Connect With WPA - Demonstrates how to connect to a network that is encrypted with WPA2 Personal.
Simple Web Server WiFi - Turn on and off an LED accessing this simple Web Server.
UDP NTP Client - Query a Network Time Protocol (NTP) server using UDP.
WiFi Chat Server - Set up a simple chat server.
WiFi Web Client - Connect to a remote webserver.
WiFi Web Client Repeating - Repeatedly make HTTP calls to a server.
WiFi Web Server - Serve a webpage from the WiFi shield with Analog Input values.
WiFi Send Receive UDP String - Send and receive a UDP string.
Last revision 2018/08/23 by SM