
// if you're not connected, stop here:
if
( status != WL_CONNECTED) {
Serial
.
println
(
"Couldn't get a wifi connection"
);
while
(
true
);
}
// if you are connected, print out info about the connection:
else
{
Serial
.
println
(
"Connected to network"
);
}
}
void
loop
() {
// do nothing
}
WEP Network example
Your router will most likely have a settings dialog similar to the one below for generating the WEP
key based on an ASCII passphrase:
If you do not have access to your router's administrative tools, consult your network administrator.
Each key is 10 or 26 hexadecimal digits long (40 or 128 bits) and paired with a key number. For
example, a 40-bit key, ABBADEAF01 will work, but ABBADEAF won't work (too short) and
ABBAISDEAF won't work (I and S are not hexadecimal characters).vFor 128-bit, you need a string
that is 26 characters long. D0D0DEADF00DABBADEAFBEADED will work because it's 26
characters, all in the 0-9, A-F range.
NB : WEP provides a basic encryption mechanism, but it can be cracked. If you require strong
encryption for your network, it is recommended you use WPA
Содержание WiFI Shield
Страница 4: ...Ports on the WiFi Shield ...