C
UINT16 WF_CMDisconnect();
Description
Directs the Connection Manager to close any open connection or connection attempt in progress. No further attempts to connect are taken until WF_CMConnect() is called.
Preconditions
MACInit must be called.
Returns
Operation results. Success or Failure
Remarks
Disconnection is allowed only in connected state. If MRF24W FW is in the midst of connection (or reconnection) process, then disconnect can hammer connection process, and furthermore it may cause fatal failure in MRF24W FW operation. To be safe to use disconnect, we strongly recommend the user to disable module FW connection manager by enabling #define DISABLE_MODULE_FW_CONNECT_MANAGER_IN_INFRASTRUCTURE in WF_Config.h