Hello, I'm trying to create a virtual port for connection to a device from WM5, but just get an error: "Error creating virtual port". I tested on another smart phone with WM6.1 and no errors happened. Does anyone have any idea what the problem in WM5?
Code:
BluetoothEndPoint endPoint = new BluetoothEndPoint(btAddress, BluetoothService.SerialPort);
for (int i = 0; i
{
try
{
COM = BluetoothSerialPort.CreateClient("COM" + i, endPoint);
if (COM != null)
{
MessageBox.Show("COM OK!!!!!");
break;
}
}
catch (Exception ex)
{
MessageBox.Show("Error port: COM" + i + ": " + ex.Message);
}
}
I also tried the code below:
COM = BluetoothSerialPort.CreateClient (endpoint);
and not worked.
PS: I am using 32feet.NET 2.5_0125
Tks.