.Disassociate Method

Top  Previous  Next

 

Function:

Causes the Wi-Fi interface to commence disassociation from the wireless network.

Syntax:

wln.disassociate() as accepted_rejected

Returns:

One of accepted_rejected constants:

0- ACCEPTED.

1- REJECTED.

See Also:

Disassociating From the Network, Wln Tasks

 


Details

The disassociation process is a task. As such, the wln.disassociate will be rejected (return 1- REJECTED) if another task is currently in progress. The task will also be rejected if the Wi-Fi hardware is not online (wln.enabled= 0- NO). The method will return 0- ACCEPTED if the task is accepted for processing.

The task is completed when the wln.task R/O property becomes 0- PL_WLN_TASK_IDLE. The on_wln_task_complete event will also be generated at that time. Additionally, the on_wln_event event will be generated with PL_WLN_EVENT_DISASSOCIATED argument.