Wln Object

Top  Previous  Next

object_wln

The wln object represents the Wi-Fi interface of your device. It is through this object that you find available Wi-Fi networks and select the one to associate with. You can also create an ad-hoc network of your own and have other stations connect to it.

The wln object is not responsible for actual data communications over the Wi-Fi -- this is the job of the sock object. In the task it performs, the wln object is similar to the net object, which controls another interface -- the Ethernet. In comparison, the wln object is more complex.

 

The wln object allows you to:

Scan for available networks and obtain their parameters such as name, channel, mode, etc.
Set WEP security mode and key.
Associate with one of the networks (at a time) or form your own "ad-hoc" network on a desired channel.
Monitor received signal strength.
Detect disassociation from the network.
Detect Wi-Fi interface power-down or malfunction.

 

The present incarnation of the wln object is intended to work with Tibbo's GA1000 802.11b/g add-on board. Previous version of the .wln object worked with the now obsolete WA1000 add-on board. This transition has caused certain changes in how the wln object works. These changes are detailed in Migrating From the WA1000 topic.