Synchronous wi-fi disconnection function, requesting a Wi-Fi disconnect from the currently connected AP.
◆ m2m_wifi_disconnect()
- 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.