Bluetooth Framework C++ Edition

◆ OnDisconnect()

__event void OnDisconnect ( void *  Sender,
const int  Reason 
)

The even fires when a connection to a remote device has been closed.

Parameters
SenderThe object that initiated the event.
ReasonThe disconnection code. If the parameter is WCL_E_SUCCESS the connection was closed by the Disconnect call. Otherwise indicates the disconnection reason.