buildtest

The buildtest sketch does a full test of core WiFi connectivity: 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:
#define WLAN_SSID       "yourNetwork"        // cannot be longer than 32 characters!
#define WLAN_PASS       "yourPassword"
If you're using WEP, the password should look like this:

const char WLAN_PASS[] = {0x1A, 0x2B, 0x3C, 0x4D, 0x5E, 0x00};

Since it's a collection of bytes not 'passphrase' style key
Also, make sure that the right wireless security scheme is selected (unsecured, WEP, WPA, or WPA2)
// Security can be WLAN_SEC_UNSEC, WLAN_SEC_WEP, WLAN_SEC_WPA or WLAN_SEC_WPA2
#define WLAN_SECURITY   WLAN_SEC_WPA2
Here's a sample of the Serial Monitor output of buildtest. You should see something similar:
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
Make sure you can see and recognize all of the access points around, connect to the access point, get a good connection with DHCP, can do a DNS lookup on www.adafruit.com and ping it successfully. If all this works, then your hardware is known good!

This guide was first published on Sep 16, 2013. It was last updated on Mar 08, 2024.

This page (buildtest) was last updated on Sep 12, 2013.

Text editor powered by tinymce.