.NET Components for Mobility

Problem To Pair Mobile Devices with Bluetooth Desktop Application

Last post 06-22-2009 9:48 AM by vilardo78. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-22-2009 7:40 AM

    Problem To Pair Mobile Devices with Bluetooth Desktop Application

    *****************************************************************CODE*********************************************************************** 

    Dim theuri As New Uri("obex://" & CType(cboDevices.SelectedItem, InTheHand.Net.Sockets.BluetoothDeviceInfo).DeviceAddress.ToString & "/" + System.IO.Path.GetFileName(Label11.Text))

    Dim request As New InTheHand.Net.ObexWebRequest(theuri)

    request.ReadFile(Application.StartupPath & Label11.Text)Dim s As DateTime

    s = Now

    response = CType(request.GetResponse(), InTheHand.Net.ObexWebResponse)

    __________________________________________________________________________________________________________________

    Can I set Pairing code???

    The Mobile Device ask me to set Pairing code, but in the request i haven't the possibility to set the code.

    Can you help me please?

    Thanks 

  • 06-22-2009 8:21 AM In reply to

    Re: Problem To Pair Mobile Devices with Bluetooth Desktop Application

    You could call BluetoothSecurity.PairRequest with the device address and pin.  That will launch a bonding process then.

    On BluetoothClient we have SetPin so I suppose we could have SetBluetoothPin on ObexWebRequest too...  I'll have a look at that when I get some time.  (Added bug http://32feet.codeplex.com/WorkItem/View.aspx?WorkItemId=23195)

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 06-22-2009 9:48 AM In reply to

    Re: Problem To Pair Mobile Devices with Bluetooth Desktop Application

    Thank you very much!!!Big Smile

Page 1 of 1 (3 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.