510
Platforms
©2000-2008 Tibbo Technology Inc.
After the execution of the above, s string may contain something like this: "TIBBO,
c1100_1,WNET2".
When called with the argument set to the name of a particular network, the wln.
scan method will return additional data on this network:
R/O property will contain the name of the specified
network, or nothing if the network wasn't found. If the network was found, the
following four properties will have additional data on this network:
R/O property will contain the BSSID of the specified
network.
R/O property will contain the BSS mode of the
network.
R/O property will return the number of the RF channel
on which the network operates.
R/O property will contain the strength of the RF signal
received from the specified network.
The scanning cannot be performed while the Wi-Fi interface is in the associated
state (
1- PL_WLN_ASSOCIATED) or is running its own ad-
hoc network (wln.associationstate= 2- PL_WLN_OWN_NETWORK).
Don't know what SSID in wln.scanresult means? How about BSSID or
RSSI? The
will tell you what it all means!
Setting WEP Mode and Key
with (creating) uses (is supposed to be
, then you need to set the WEP prior to associating with (creating)
the network. The
method allows you to specify the key and the WEP
mode. Note that wln.setwep is a
and there is a certain correct way of
handling tasks.
The mode can be either OFF, 64-bit WEP, or 128-bit WEP. WEP key is entered as a
HEX string, not ASCII string. Each character in a string represents one HEX digit:
0..9 or A..F (a..f). The key has a fixed length: 10 HEX digits for WEP-64 or 26 HEX
digits for WEP-128. If your key is too short, it will be padded with zeroes, if the key
is too large it will be truncated.
Here is the code example that sets the Wi-Fi to WEP-128 mode:
'set WEP-128
wln.setwep("11111111111111111111111111",PL_WLN_WEP_MODE_128)
'we love to
choose difficult keys
While
wln.task<>PL_WLN_TASK_IDLE
Wend
Note that the WEP mode and key can't be changed while the Wi-Fi interface is in
the associated state (
1- PL_WLN_ASSOCIATED) or is
running its own network (wln.associationstate= 2- PL_WLN_OWN_NETWORK).
526
525
525
526
526
514
500
511
500
527
500
514