I have had issues with the Microsoft stack where I am getting an invalid address that was in fact discovered. This occurred in approx 3% of my sessions. I wanted to see if this problem would go away with the Bluesoleil stack.
The code I am using works fine on the Microsoft stack but fails with:
InTheHand.Net.Bluetooth.BlueSoleil.BlueSoleilSocketException: An operation was attempted on something that is not a socket (BlueSoleil: OPERATION_FAILURE (0x0302)).
at InTheHand.Net.Bluetooth.BlueSoleil.BluesoleilUtils.CheckAndThrow(BtSdkError ret, String descr)
at InTheHand.Net.Bluetooth.BlueSoleil.BluesoleilClient.ConnectRfcomm(BluetoothEndPoint remoteEP, UInt32 hDev, UInt32& hConn, Byte& channel, Int32& comPort)
at InTheHand.Net.Bluetooth.BlueSoleil.BluesoleilClient.Connect(BluetoothEndPoint remoteEP)
at InTheHand.Net.Sockets.BluetoothClient.Connect(BluetoothEndPoint remoteEP)
at InTheHand.Net.Sockets.BluetoothClient.Connect(BluetoothAddress address, Guid service)
The discovery works as expected, but the connect is failing. I tried using a serial port service, but it failed as well. Is it possible to establish a RFCommProtocol connection? I am using product version 3.3.909.0