TwclWiFiDirectConnectionComponent.DoDeviceDisconnected(TwclWiFiDirectDevice,Integer) Method

Fires the OnDeviceDisconnected event.

Namespace: wclWiFi
protected
 procedure DoDeviceDisconnected(const Device: TwclWiFiDirectDevice;
 const Reason: Integer); virtual;

Parameters

Device
Type: TwclWiFiDirectDevice

The WiFi Direct device object.

Reason
Type: Integer

The disconnection reason. If the Reason is wclErrors.WCL_E_SUCCESS then the client disconnected by call the Disconnect method.