TwclGattClientConnection.SetConnectionParams(TwclBluetoothLeConnectionParametersValue) Method

Request the connection parameters change to the specified preferred connection parameters.

Namespace: wclBluetooth
public
 function SetConnectionParams(
 const Params: TwclBluetoothLeConnectionParametersValue): Integer; overload;

Parameters

Params
Type: TwclBluetoothLeConnectionParametersValue

The preferred Bluetooth LE connection parameters value.

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.

If the connection parameters were changed successfully the OnConnectionParamsChanged even fires.

This feature is supported with BLED112 dongle and with Microsoft Bluetooth drivers on Windows 11 and above.