BL4S200 User’s Manual
152
The next macro specifies a suitable pre-shared key to use instead of the passphrase. The
key may be entered either as 64 hexadecimal digits or as an ASCII string of up to 63
characters.
#define IFC_WIFI_WPA_PSK_HEXSTR
TIP:
There is a good chance of typos since the key is long. First, enter the key in this
sample program macro, then copy and paste it to your access point. This ensures that
both the BL5S220 and the access point have the same key.
TIP:
For an initial test, it may be easier to use the 64 hex digit form of the key rather than
the ASCII passphrase. A passphrase requires considerable computation effort, which
delays the startup of the sample program by about 30 seconds.
Change
PING_WHO
to the host you want to ping. You may modify
PING_DELAY
to
change the amount of time in milliseconds between the outgoing pings.
Uncomment the
VERBOSE
define to see the incoming ping replies.
Once you have compiled the sample program and it is running, LED DS2 will flash
when a ping is sent, and LED DS3 will flash when a ping is received.
electronic components distributor