TwclGattClientConnection.PrepareForConnection Method

The method called internally before connection.

Namespace: wclBluetooth
protected
 function PrepareForConnection: Integer; virtual;

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.

A derived class may override this method to process some connection pre-requirements that should be executed in the main thread UI. Used by BLED112 to be able to get protection parameters.