on_wln_task_complete Event
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: |
Part |
Description |
completed_task |
The task just completed:
|
* When WPA or WPA2 security is used, this event will really mean "pre-association completed." After this, the Wi-Fi interface must still execute the WPA handshake. If this fails, your device will be disassociated from the network and an on_wln_event(1 — PL_WLN_EVENT_DISASSOCIATED) event will be generated.
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.