software you can take with you

Bluetooth connection

Last post 01-09-2012 4:31 PM by winy57. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 01-09-2012 4:31 PM

    • winy57
    • Not Ranked
    • Joined on 01-04-2012
    • Posts 1

    Bluetooth connection

    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

Page 1 of 1 (1 items)
Copyright © 2001-2013 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting