Now, look for the following two
lines in the sketch and set them to
the SSID and Passphrase that you
configured your router to use in
Step 2:

char szSSID = “DLClab”;
// the name of the network to
// connect to
char szPassPhrase =
“bogosity”;
// pass phrase to use with
// WPA2

Figure 8.

You can search the sketch using
“***DLC” if you like. I put those
comments into the code so that I
could find them again later. You are
now ready to compile and download
your sketch.

To compile and download, press
the box with an arrow pointing to
the right in the upper left of the
MPIDE window (refer again to
Figure 8). After it finishes crunching
data and downloading to your board,
press the Serial Monitor button in the
upper right of the MPIDE window.
After about 40 seconds, you’ll see
the serial port output shown in
Figure 9. It typically takes about
40 seconds.

This all means that you now have
a connection to your wireless
network. Pat yourself on the back for
your tireless efforts! If you look at
your router, you’ll see your board
listed in the DHCP client table which
you will find by navigating to the
“Status” tab and the “Router”
sub-tab, and clicking on the “DHCP
Client Table” button (Figure 10).

This router table is another place
that you can confirm your connection
status while troubleshooting your
work.

Figure 9.

Figure 10.

Playing With Your
New Toy

Now that you are running and
on the network, let’s talk to the
board! Figure 11 shows the web
page that you will get when you use
your favorite browser and type in the
IP address given in Figures 9 and 10.