C
void MiApp_RemoveConnection( BYTE ConnectionIndex );
Description
This is the primary user interface function to disconnect connection(s). For a P2P protocol, it simply remove the connection. For a network protocol, if the device referred by the input parameter is the parent of the device calling this function, the calling device will get out of network along with its children. If the device referred by the input parameter is children of the device calling this function, the target device will get out of network.
Preconditions
Transceiver has been initialized. Node has establish one or more connections
Parameters
Parameters |
Description |
BYTE ConnectionIndex |
The index of the connection in the connection table to be removed |
Returns
None
Remarks
None
Example
MiApp_RemoveConnection(0x00);