Hi all,
I'm a newbie in bluetooth programming and I'm making some test in order to communicate with a bluetooth GPS receiver.
My platform is: Windows CE 6.0, .netCF2.0 (Sp2), InTheHand2.1
The final goal is to succeed in using the SerialPort service.
Here's my code (the discovery part... works, since I can see all the devices in the range).
bool res1 = InTheHand.Net.Bluetooth.BluetoothSecurity.PairRequest(arrayDev[listBoxDevices.SelectedIndex].DeviceAddress, "0000");
BluetoothEndPoint btep = new BluetoothEndPoint((BluetoothAddress)address_array[listBoxDevices.SelectedIndex], InTheHand.Net.Bluetooth.BluetoothService.SerialPort);
bc.Connect(btep);
Here's the exception I receive (at the bc.connect instruction):
System.Net.Sockets.SocketException was unhandled
Message="No connection could be made because the target machine actively refused it"
ErrorCode=10061
Could it be something to the hardware I'm using? (I'm using a Trust USB-bluetooth dongle and an Hamlet GPS receiver)
many thanks in advance!