Serial Framework C++ Edition

◆ OnDisconnect()

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

The event fires when the remote connected device has been disconnected.

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.