Disassociating From a Network

To disassociate from a network, use the wln.disassociate method. Note that wln.disassociate is a task and there is a certain correct way of handling tasks.


The wln.disassociate method will be rejected (return 1 — REJECTED) if:


Tibbo BASIC
'disassociate now
wln.disassociate
While wln.task<>PL_WLN_TASK_IDLE
Wend

When the Wi-Fi module disassociates from an access point, an on_wln_event(PL_WLN_EVENT_DISASSOCIATED) event is generated.