Click or drag to resize

wclBluetoothRadioSetConnectable Method

Changes the connectable state of the local Bluetooth Radio.

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public int SetConnectable(
	bool Connectable
)

Parameters

Connectable  Boolean
The new connectable state for the Radio.

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

Setting the Conenctable parameter to True allows remote Bluetooth enabled devices to connect to this Radio.

Setting the Conenctable parameter to False blocks the Radio from remote Bluetooth enabled devices connecting.

Microsoft: A radio that is non-connectable is non-discoverable. The radio must be made non-discoverable prior to making a radio non-connectable. Failure to make a radio non-discoverable prior to making it non-connectable will result in failure of this method call.

See Also