.NET Components for Mobility

BluetoothDeviceInfo.GetServiceRecords() is not there

Last post 07-10-2009 8:03 AM by alanjmcf. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-30-2009 10:04 AM

    BluetoothDeviceInfo.GetServiceRecords() is not there

     please can any one help me with this missing methode

     

    BluetoothDeviceInfo.GetServiceRecords()

     

    I can find it in the documentation but I got this error while trying to use it :

    Normal 0 false false false EN-US X-NONE AR-SA MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

    'InTheHand.Net.Sockets.BluetoothDeviceInfo' does not contain a definition for 'GetServiceRecords' and no extension method 'GetServiceRecords' accepting a first argument of type 'InTheHand.Net.Sockets.BluetoothDeviceInfo' could be found (are you missing a using directive or an assembly reference?) 

       thank you in advance

     

  • 07-10-2009 8:03 AM In reply to

    Re: BluetoothDeviceInfo.GetServiceRecords() is not there

    Did you resolve this?  If not ask in the 32feet.NET forum http://32feet.net/forums/37.aspx  However its very uncommon that you need to call this method.  See the user's guide for how to make Bluetooth connections (its in the release or at http://www.alanjmcf.me.uk/comms/bluetooth/32feet.NET%20--%20User%20Guide.html)

    Anyway, GetServiceRecords is an instance method so is called like shown below:

       Dim cli As New BluetoothClient
       Dim peers() As BluetoothDeviceInfo = cli.DiscoverDevices()
       Dim deviceA As BluetoothDeviceInfo = peers(0)
       Dim svcClass As Guid = BluetoothService.SerialPort
       Dim recordList() As ServiceRecord = deviceA.GetServiceRecord(svcClass)
       ... ...

     

    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.
Page 1 of 1 (2 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.