buildtest
The buildtest sketch does a full test of core WiFi connectivity:
Initialization
SSID Scan
Access Point connection
DHCP address assignment
DNS lookup of www.adafruit.com
Ping www.adafruit.com
Disconnect
It's a good idea to run this sketch when first setting up the module. It will let you know that everything is working correctly.
Before you run the sketch, edit it to replace the dummy SSID and password with your own: