×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Location
    india
    Posts
    179

    Red face check bluetooth status

    hello frds.........
    i want 2 check bluetooth status , whether is it off or on and if
    bluetooth is ON but still not being used(i.e data is not transferred)so that i can switch it off so as to save the bluetooth resource.

    pls help me.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: check bluetooth status

    See this: Check Bluetooth On or Off

    Always search on Wiki first. It has many good articles which may suffice your needs. For this particular question, just search for "bluetooth" on Forum Nokia Wiki

    All the best.
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: check bluetooth status

    Quote Originally Posted by manmay.gupta View Post
    hello frds.........
    i want 2 check bluetooth status , whether is it off or on and if
    bluetooth is ON but still not being used(i.e data is not transferred)so that i can switch it off so as to save the bluetooth resource.

    pls help me.
    to check data is transferring on bluetooth or not you can use CBluetoothPhysicalLinks::Enumerate()

    Regards,
    Sumit

  4. #4
    Regular Contributor
    Join Date
    Dec 2008
    Location
    india
    Posts
    179

    Re: check bluetooth status

    ths sumit n kiran 4 d reply.
    now i m able 2 check wethr bluetooth is on or off,
    pls tell me if bluetooth is ON but still not being used(i.e data is not transferred)....how 2 check it....?


    i checked 4 CBluetoothPhysicalLinks::Enumerate() in sdk help , bt unable 2 catch it.
    can ny1 post sm sample code.

  5. #5
    Regular Contributor
    Join Date
    Dec 2008
    Location
    india
    Posts
    179

    Re: check bluetooth status

    REPLY 2 SUMIT....

    helo sumit.
    i checked post about my problem andd u hd also d same problem befor.
    pls tell me hd u solved it...?
    pls give me more details about my problem.
    n giv me some sample code if u hv.

    thx in advance.

  6. #6
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: check bluetooth status

    Quote Originally Posted by manmay.gupta View Post
    REPLY 2 SUMIT....

    helo sumit.
    i checked post about my problem andd u hd also d same problem befor.
    pls tell me hd u solved it...?
    pls give me more details about my problem.
    n giv me some sample code if u hv.

    thx in advance.
    Hi mamnay,
    I had the same problem u got it right but i also posted the solution of this problem in some other post. Have you searched for it? this issue already have been discussed many times. But i am writing few lines below that would resolve your problem

    iPhysicalLinks = CBluetoothPhysicalLinks::NewL(*this, iSocketServer);


    RBTDevAddrArray iBTAddrArray;

    iPhysicalLinks->Enumerate(iBTAddrArray,50);
    if(iBTAddrArray.Count() >0)
    {
    //it means bluetooth active connections & give you no of connections and address.
    else
    {
    //No active bluetooth connection
    //switch off bluetooth here
    }

  7. #7
    Regular Contributor
    Join Date
    Dec 2008
    Location
    india
    Posts
    179

    Re: check bluetooth status

    thx 4 reply sumit........
    bt i m new in symbian ,
    still unable 2 get how 2 use ur code in my program.....
    cn u pls explain me in brief.
    plz help me yaar.

  8. #8
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: check bluetooth status

    Quote Originally Posted by manmay.gupta View Post
    thx 4 reply sumit........
    bt i m new in symbian ,
    still unable 2 get how 2 use ur code in my program.....
    cn u pls explain me in brief.
    plz help me yaar.
    Hi manmay,

    If you dont know how to put code in symbian then follow some examples
    first. Search for related examples download them and then learn how use these API's work. I have written all the lines needed to find out bluetooth active links.You can search on http://wiki.forum.nokia.com/index.php/Wiki_Home for code examples related to bluetooth or any other topic.

    Regards,
    Sumit

  9. #9
    Regular Contributor
    Join Date
    Dec 2008
    Location
    india
    Posts
    179

    Re: check bluetooth status

    ok sumit.
    thx 4 ur concern.
    let me try.

Similar Threads

  1. Bluelet - Rapid Bluetooth App Development (Free source)
    By huiben in forum Mobile Java General
    Replies: 4
    Last Post: 2008-07-25, 15:52
  2. Detect bluetooth Service's connection status
    By HarrisTheHonesty in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-07-19, 15:10
  3. Check bluetooth on/off
    By rudycandrasantoso in forum Bluetooth Technology
    Replies: 1
    Last Post: 2004-06-21, 16:10
  4. PC Suite not detect 6600 with Bluetooth connection
    By spinacle in forum Bluetooth Technology
    Replies: 29
    Last Post: 2004-03-14, 23:24
  5. Bluetooth Status
    By a_barbs in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2003-11-06, 11:49

Posting Permissions

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