Hi, I'm a new french user of 32Feet library !
I've problems with connecting my mobile with a bluetooth device which provides a serial port. I'm working on vb.net 2008 and windows mobile 6.1.
When making a connection with BTExplorer on my Motorola MC55, my software works fine. But my client don't want to use BTExplorer and hopes my program could make the connection automatically.
I've tried this :
<code>
Dim BTMac As String = "00:18:B2:01:83:85"
Dim BTAddress As BluetoothAddress
Dim BTClient As New BluetoothClient
Dim BTEndPoint As BluetoothEndPoint
BTAddress = BluetoothAddress.Parse(BTMac)
BTEndPoint = New BluetoothEndPoint(BTAddress, BluetoothService.SerialPort)
Try
BluetoothSecurity.PairRequest(BTAddress, "0000")
Application.DoEvents()
BTClient = New BluetoothClient
BTClient.Connect(BTEndPoint)
Return True
Catch e As Exception
Return False
End Try
</code>
My remote device is added, but the serial port is not connected. I've seen the BluetoothSerialPort.CreateClient method, but I don't know if I have to use it.
Can anyone help me??
Thanks
Mickael