On_wln_task_complete Event

Top  Previous  Next

Function:

Generated when the Wi-Fi interface completes executing a given task.

Declaration:

on_wln_task_complete(completed_task as pl_wln_tasks)

See Also:

Wln Tasks

on_wln_event

 


Part

Description

completed_task

The task just completed:

1- PL_WLN_TASK_SCAN: Scan task completed (this task is initiated by the wln.scan method).

2- PL_WLN_TASK_ASSOCIATE: Association task completed (this task is initiated by the wln.associate method).

3- PL_WLN_TASK_SETTXPOWER: TX power adjustment task completed (this task is initiated by the wln.settxpower method). This is an "immediate" task.

4- PL_WLN_TASK_SETWEP: WEP mode and keys setup task completed (this task is initiated by the wln.setwep method). This is an "immediate" task.

5- PL_WLN_TASK_DISASSOCIATE: Disassociation task completed (this task is initiated by the wln.disassociate method).

6- PL_WLN_TASK_NETWORK_START: Ad-hoc network creation completed (this task is initiated by the wln.networkstart method).

7- PL_WLN_TASK_NETWORK_STOP: Ad-hoc network termination completed (this task is initiated by the wln.networkstop method).

8- PL_WLN_TASK_SETWEP: WPA mode and keys setup task completed (this task is initiated by the wln.setwpa method). This is an "immediate" task.

Details

The wln.task read-only property will change to 0- PL_WLN_TASK_IDLE along with this event generation.

Multiple on_wln_task_complete events may be waiting in the event queue.  For this reason the doevents statement will be skipped (not executed) if encountered within the event handler for this event or the body of any procedure in the related call chain.