TwclWiiRemoteClientConnection.HalDisconnect Method

Implements a hardware-dependent code that disconnects from the connected remote device.

Namespace: wclBluetooth
protected
 function HalDisconnect: Integer; override;

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Overrides

TwclClientConnection.HalDisconnect

The method is called only if a connection to a remote device was established with success (the Connect method was success).

The method will not be called if the connection to the remote device was terminated in the middle of the HalConnect method.

A derived HalConnect implementation must always call the HalConnect method first, before any other connection operation. If the connection is failed the derived implementation must always call inherited HalDisconnect method.

A derived class must always call inherited method.