I have a WinCE device which I'm trying to use as the endpoint of a
bluetooth serial connection (e.g. so that I can initiate a connection
from my PC). I am doing the following:
_BluetoothSerialPort port = BluetoothSerialPort.CreateServer(InTheHand.Net.Bluetooth.BluetoothService.SerialPort);
Console.Out.WriteLine("BTSerialConnnection virtual com port is " +
port.PortName + " " + " " + port.Service + " " +
port.Local);
This code succeeds as desired, and I see that the portName is "COM0". I then try to open a SerialPort as follows:
SerialPort serialPort = new SerialPort(port.PortName, 38400);
serialPort.Open();
The Open() call fails with the following eror, "The port 'COM0:' does not exist". Any ideas what I am doing wrong?