Terminating Your Own Network
Use the wln.networkstop method to terminate your own network that was created by calling wln.networkstart.
Note that wln.networkstop is a task and there is a certain correct way of handling tasks.
The wln.networkstart method will be rejected (return 1 — REJECTED) if:
- Another task is currently in progress.
- The Wi-Fi add-on module is not booted using wln.boot (wln.enabled = 0 — NO).
- The Wi-Fi interface is not running its own network at the moment (wln.associationstate <> 2 — PL_WLN_OWN_NETWORK).