513
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Rebooting
Rebooting is done by applying a
to the Wi-Fi module. When the
Wi-Fi interface add-on goes offline, the wln object will
this in a matter of
milliseconds. Your application can stay and wait for this:
'reset the Wi-Fi module (we assume that the RST line is connected to I/O
line #51)
io.num=PL_IO_NUM_51
io.enabled=YES
'enable this line
io.state=LOW
'apply reset
io.state=HIGH
'remove reset
'wait for the wln object to detect this
While
wln.enabled=YES
Wend
'OK, now can repeat the boot process
Detecting Disassociation or Offline State
The wln object automatically detects disassociation from the wireless network and
powering-off of the Wi-Fi hardware.
event is fired up if either
condition is detected. in response to this event, your application can re-initialize
the Wi-Fi hardware and/or re-associate with the wireless network.
8.3.15.3
Properties, Methods, Events
Properties, methods, and events of the wln object.
.Associate Method
Function:
Causes the Wi-Fi interface to attempt association with the
specified wireless network.
Syntax:
wln.associate(byref bssid as string, byref ssid as
string, channel as byte, bssmode as
pl_wln_bss_modes) as accepted_rejected
Returns:
One of accepted_rejected constants:
0- ACCEPTED.
1- REJECTED.
See Also:
Associating With Selected Network
,
Part
Description
bssid
The BSSID ("MAC address") of the network with which to associate.
ssid
The name of the target network with which to associate.
chan
nel
Channel on which the target network is operating.
506
513
522
511
510
500