BL4S200 User’s Manual
157
The following authentication options are available.
•
IFPARAM_WIFI_AUTH_OPEN
—
only use open authentication
.
•
IFPARAM_WIFI_AUTH_SHAREDKEY
—
only use shared-key authentication (useful
for WEP only)
.
•
IFPARAM_WIFI_WPA_PSK
—
use WPA preshared-key authentication (useful for
TKIP and CCMP only)
.
•
Fragmentation threshold—
IFC_WIFI_FRAG_THRESHOLD
sets the fragmentation
threshold. Frames (or packets) that are larger than this threshold are split into multiple
fragments. This can be useful on busy or noisy networks. The value can be between
256
and
2346
.
The default,
0
, means no fragmentation.
#define IFC_WIFI_FRAG_THRESHOLD 0
•
RTS threshold—
IFC_WIFI_RTS_THRESHOLD
sets the RTS threshold, the frame size
at which the RTS/CTS mechanism is used. This is sometimes useful on busy or noisy
networks. Its range is
0
to
2347
.
The default,
2347
, means no RTS/CTS.
#define IFC_WIFI_RTS_THRESHOLD 2347
Examples are available within Dynamic C. Select “Function Lookup” from the
Help
menu, or press
<ctrl-H>
. Type “TCPCONFIG” in the Function Search field, and hit
<Enter>
. Scroll down to the section on “Wi-Fi Configuration.” The
Dynamic C TCP/IP
User’s Manual
.(Volume 1) provides additional information about these macros and Wi-Fi.
It is also possible to redefine any of the above parameters dynamically using the
ifcon-
fig()
function call. Macros for alternative Wi-Fi configurations are provided with the
ifconfig()
function call, and may be used to change the above default macros or
configurations.
electronic components distributor