Click or drag to resize

wclGattClientConnectionConnect(Int64, Boolean, Boolean) Method

Connects to a remote device.

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public int Connect(
	long Address,
	bool ConnectOnRead,
	bool ForceNotifications
)

Parameters

Address  Int64
A remote device MAC address.
ConnectOnRead  Boolean
A Boolean indicates whether a connection should made during Connect call or on first services read. True indicates that the connection should be executed on first services read on when OS decided to do that.
ForceNotifications  Boolean
A Boolean indicates that the notifications (and/or indications) should be forced. This should be set to True for some boards (such as Bluno, Bluno Mega and some others) that do not have Characteristic Client Configuration Descriptor.

Return Value

Int32
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
Remarks
The method starts a connection operation to a remote device. If the method success that does not mean that the connection was established. That just means that the connection operation was started. The real connection result will be passed to the OnConnect event handler.
See Also