503
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Wln State Transitions
The Wi-Fi hardware may be in one of the following states:
Uninitialized state (
= 0- NO).
Booted and idle (wln.enabled= 1- YES and
= 0-
PL_WLN_NOT_ASSOCIATED).
Booted and associated with a network, either infrastructure or ad-hoc (wln.
enabled= 1- YES and wln.associationstate= 1- PL_WLN_ASSOCIATED).
Booted and running an ad-hoc network of its own (wln.enabled= 1- YES and wln.
associationstate= 2- PL_WLN_OWN_NETWORK).
The following diagram details possible state transitions.
The only way to advance from the uninitialized state into the booted state is
through a successful boot. The process is described in
. The key method for the process is
.
There is no special method for powering down. Your application can only
the Wi-Fi hardware, after which the boot process can be repeated. The
is generated when the GA1000 goes offline, either as a result of a
deliberate reset, or in case the Wi-Fi hardware malfunctions.
Transition between the idle and associated states happens as a result of successful
association. This is detailed in the
Associating With Selected Network
topic. The
key method is
.
method can be used to force disassociation. The wln object
also detects the loss of association automatically, i.e. when the network in
519
514
504
515
513
522
511
513
518