×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Bluetooth device discovery info

    Hi everyone,

    I need to get bluetooth device visibility(discovery) state like "Show to all" or "hidden" for 2nd edition devices and device name.

    please help me.

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: Bluetooth device discovery info

    From 2nd ed. SDK help "Developer Library » Symbian OS Guide » C++ API guide » Bluetooth » Using Bluetooth Sockets » How to get and set the local device name"

    How to get and set the local device name
    Each Blutetooth device has a name for identifying the device to users etc. The local device name is read and set through the RHostResolver functions GetHostName() and SetHostName() respectively.

    Example
    The following code shows how to get the local name:
    Code:
    // 1. Connect to the socket server
    RSocketServ socketServ;
    socketServ.Connect();
    TProtocolDesc pInfo;
    _LIT(KL2Cap, "L2CAP");
    socketServ.FindProtocol(KL2Cap,pInfo);
    
    // 2. Create and initialise an RHostResolver
    RHostResolver hr;
    hr.Open(socketServ,pInfo.iAddrFamily,pInfo.iProtocol);
    
    // 3. Get the local device name
    THostName name;
    TInt ret=hr.GetHostName(name);
    Note
    THostName is a descriptor buffer of a suitable minimum size.

Similar Threads

  1. Help for Device Discovery through Bluetooth
    By vijusan_2000 in forum Mobile Java General
    Replies: 5
    Last Post: 2010-01-21, 15:33
  2. Bluesoleil Software
    By kencooper in forum Bluetooth Technology
    Replies: 9
    Last Post: 2008-08-29, 19:46
  3. Unable to receive data from Bluetooth Device Via RFComm
    By kctan in forum Bluetooth Technology
    Replies: 0
    Last Post: 2008-06-15, 15:23
  4. Bluetooth device discovery problem in Nokia 6230i
    By jubilee in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2006-07-07, 09:24
  5. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×