Hello,
I'm trying to connect my PDA and create a virtual COM Port dynamically.
The Pairing and com port are closed after each command i send.
I've successfully paired the PDA with : "BluetoothSecurity.PairRequest(BTAdress, PinCode)"
After i create the com port with : "BTDevInfo.SetServiceState(BluetoothService.SerialPort, true)"
With my PDA It create by default the COM port 0.
I've modified a little the "BTDevInfo.SetServiceState(BluetoothService.SerialPort, true)" because i want to be sure that it will use COM3.
Everithing works great but i still have a little problem :
When i completely turn off the PDA and after restart it, the pairing of devices and Com port creation works great
but i cannot open the COM port i've just created.
If i pair manually the devices and create the virtual COM port just one time, then after my code works great.
(I can pair and unpair the devices and create or destroy the COM port)
Do you know why i have to pair manually one time ?
Would it bet better for me to always keep a connexion and the COM3 port opened before reset the device ?
I only have one Bluetooth card for now, but in future the application has to connect to many different Bluetooth card,
will i have the same problem if the mac adress change ?