I am developing an application targetting the .NET CF 2.0 (implementing on WM5 & hopefully WM6), which uses Bluetooth to listen to serial data being output by numerous BT devices.
I have a successful version of the application running using the System.IO.Ports.SerialPortcontrol. The incoming BT COM port information is gathered from the registry setting
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\Serial\Ports\Incoming
and this is passed to the SerialPort control. Any data received is stored in a file for processing later.
The problem I have is that not all devices have a pre-configured "Incoming" BT port, or it may have been deleted, and this application has to target users which do not have any tech knowledge and has to work out-of-the-box i.e. instructing the user to configure a New Incoming Port through the Settings panel is not an option.
How can I generate a New Incoming Port through code?
I have downloaded & installed the latest version of the InTheHand classes, but after trialling a few versions of code in my application I have not had any success.
Any ideas will be greatly appreciated.