.Associate Method |
Top Previous Next |
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, Setting Wi-Fi Security, Wln Tasks |
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. |
channel |
Channel on which the target network is operating. |
bssmode |
Network mode: 0- PL_WLN_BSS_MODE_INFRASTRUCTURE: This is an infrastructure network (access point). 1- PL_WLN_BSS_MODE_ADHOC: This is an ad-hoc (device-to-device) network. |
Details
The association process is a task and there is a certain correct way of handling tasks. Task completion does not imply success -- association result has to be verified by reading the state of the wln.associationstate read-only property after the task is completed.