Hello,
I have Wince 6 device that connects with medical devices with bluetooth and SPP.
I do the DiscoverDevices and I can see all of them. The next step is make the pairing but all the medical devices has pin "0000". I select one of the devices and I do the next code:
BluetoothDeviceInfo ba = (BluetoothDeviceInfo)listBox3.SelectedItem;
BluetoothClient client = new BluetoothClient();
client.Authenticate = true;
client.Encrypt = true;
client.SetPin(ba.DeviceAddress, "0000");
BluetoothEndPoint BTEndPoint;
Guid spguid = BluetoothService.SerialPort;
BluetoothAddress BTAddress;
BTAddress = ba.DeviceAddress;
BTEndPoint = new BluetoothEndPoint(BTAddress, spguid);
client.Connect(BTEndPoint);
The device blue light says me that I'm connected but after some time waiting a message says me "No connection could be made because the target machine actively refused it"
I know the devices works well because I read data from an application in the PC and from a mobile application in J2ME and now I want to port the code to Wince.
Please can anyone says me what I doing wrong?
Thanks in advance.