Reputation: 38710
currently writes an application to connect to the device "BTLink Bluetooth to Serial Adapter"
More information about device: device specification Have created such a code:
BluetoothAddress btAddress = null;
if (!BluetoothAddress.TryParse(comboBoxDevices.SelectedValue.ToString().Trim(), out btAddress))
throw new Exception(String.Format("Adress: {0} wrong !", comboBoxDevices.SelectedValue.ToString().Trim()));
BluetoothEndPoint endPoint = new BluetoothEndPoint(btAddress, BluetoothService.DialupNetworking);
_bluetoothClient.Connect(endPoint);
I have tested two types of GUIDs:BluetoothService.DialupNetworking, BluetoothService.SerialPort. I received this message: "No connection could be made because the target machine actively refused it" What is wrong ?
Best regards, mykhaylo
Upvotes: 0
Views: 2009
Reputation: 11
I made a similar setup and program using a standard serial Bluetooth adapter without problems. You need to make sure to use the correct Bluetooth profile, the port must be available and authentication code must be accepted. Just a few suggestions.
Upvotes: 1
Reputation: 104198
I would first try to connect to the target machine using the device's built-in Bluetooth capabilities. Only after this succeeds would I try to connect to it programatically.
To be able to connect to a Bluetooth device you need to know the following:
The error you are experiencing is most probably related to one of the above and has not to do with the use of the bluetooth library.
Upvotes: 1
Reputation: 67198
Have you checked with 32Feet.net or on their support Forums (the provider of the classes you're using)?
Upvotes: 1