Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
m2m_wifi_disconnect

Synchronous wi-fi disconnection function, requesting a Wi-Fi disconnect from the currently connected AP.

Functions

NMI_API sint8 m2m_wifi_disconnect (void)
 

NMI_API sint8 m2m_wifi_disconnect ( void  )
Precondition
Disconnection must be made to a successfully connected AP. If the WILC is not in the connected state, a call to this function will hold insignificant.
Warning
This function must be called in station mode only.
See Also
m2m_wifi_connect m2m_wifi_default_connect
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References hif_send(), M2M_REQ_GRP_WIFI, M2M_WIFI_REQ_DISCONNECT, and NULL.

Referenced by os_m2m_wifi_disconnect().