/// <summary> /// Connects the client to a remote Bluetooth host using the specified Bluetooth address and service identifier. /// </summary> /// <param name="address">The BluetoothAddress of the remote host.</param> /// <param name="service">The Service Class Id of the service on the remote host. /// The standard Bluetooth service classes are provided on <see cref="BluetoothService"/>.</param> public void Connect(BluetoothAddress address, Guid service) { Connect(new BluetoothEndPoint(address, service)); }
/// <summary> /// Set or change the PIN to be used with a specific remote device. /// </summary> /// <param name="device">Address of Bluetooth device.</param> /// <param name="pin">PIN string consisting of 1 to 16 ASCII characters.</param> /// <remarks>Assigning null (Nothing in VB) or an empty String will revoke the PIN.</remarks> public void SetPin(BluetoothAddress device, string pin) { option.SetPin(device, pin); }
public BluetoothDeviceInfo(BluetoothAddress address) { _info = BLUETOOTH_DEVICE_INFO.Create(); _info.Address = address; NativeMethods.BluetoothGetDeviceInfo(IntPtr.Zero, ref _info); }