TwclWiFiDirectAdvertiser.DoDeviceDisconnected(TwclWiFiDirectDevice,Integer) Method

Fires the OnDeviceDisconnected event.

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

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.

Overrides

TwclWiFiDirectConnectionComponent.DoDeviceDisconnected(TwclWiFiDirectDevice,Integer)

A derived class must always call the inherited method if this one is override.