Detecting Disassociation or Offline State
The wln. object automatically detects disassociation from a wireless network. Such disassociation may be active, i.e. caused by your app calls wln.disassociate . Disassociation can also be passive. This is when it is triggered by the access point. Disassociation also happens when your device goes out of the access point's range. In all these situations, an on_wln_event (1- PL_WLN_EVENT_DISASSOCIATED ) event is fired up.
The wln. object will also "notice" if the Wi-Fi add on-module is powered-off, disconnected, or put in reset. An on_wln_event (0- PL_WLN_EVENT_DISABLED ) event is fired up if any of these situations is detected.