Hi,
I am trying to implement the following application:
I need to search for all the devices that support the serial port emulation and, if needed, I want to pair with a known pin.
I am using many functionalities of the library but I can't obtain it. Can anyone help me to choose the rigth instructions?
Here is an example:
BluetoothClient client = new BluetoothClient();
BluetoothDeviceInfo[] devices = client.DiscoverDevices();
if (!device.Authenticated)
{
client.SetPin(device.DeviceAddress, pin);
}
foreach (Guid service in device.InstalledServices)
{
if (service.CompareTo(InTheHand.Net.Bluetooth.BluetoothService.SerialPort) == 0)
{
//ok
}
}
But it doesn't work
The SetPin gives me an exception (always) and the InstalledServices is always empty.
I am using a Qtek S100 with Windows mobile 2003.
Any suggestion ?