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
Before you run the sketch, edit it to replace the dummy SSID and password with your own:
#define WLAN_SSID "yourNetwork" // cannot be longer than 32 characters! #define WLAN_PASS "yourPassword"
const char WLAN_PASS[] = {0x1A, 0x2B, 0x3C, 0x4D, 0x5E, 0x00};
Since it's a collection of bytes not 'passphrase' style key
// Security can be WLAN_SEC_UNSEC, WLAN_SEC_WEP, WLAN_SEC_WPA or WLAN_SEC_WPA2 #define WLAN_SECURITY WLAN_SEC_WPA2
Hello, CC3000! RX Buffer : 131 bytes TX Buffer : 131 bytes Free RAM: 1237 Initialising the CC3000 ... Firmware V. : 1.19 MAC Address : 0x08 0x00 0x28 0x01 0xA8 0x8A Started AP/SSID scan Networks found: 3 ================================================ SSID Name : Extreme RSSI : 58 Security Mode: 3 SSID Name : Express RSSI : 59 Security Mode: 3 SSID Name : fios63 RSSI : 57 Security Mode: 3 ================================================ Deleting old connection profiles Attempting to connect to fios63 Started AP/SSID scan Connecting to fios63...Waiting to connect...Connected! Request DHCP IP Addr: 192.168.1.23 Netmask: 255.255.255.0 Gateway: 192.168.1.1 DHCPsrv: 192.168.1.1 DNSserv: 192.168.1.1 www.adafruit.com -> 207.58.139.247 Pinging 207.58.139.247...5 replies Ping successful! Closing the connection