Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    hi

    I want to know

    1. how I can find out that a bluetooth is on.

    2. If its on how to find out whether its sending data or recieving data.

    3. If it is not sending n receiving data for a particular amount of time
    (say 2 minutes) how to close the bluetooth device in order to save the
    power consumption used by bluetooth device.

  2. #2
    Registered User sumit.rathi's Avatar
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048
    Quote Originally Posted by amitkamboj View Post
    hi

    I want to know

    1. how I can find out that a bluetooth is on.

    2. If its on how to find out whether its sending data or recieving data.

    3. If it is not sending n receiving data for a particular amount of time
    (say 2 minutes) how to close the bluetooth device in order to save the
    power consumption used by bluetooth device.
    Hi,

    According to best of my knowledge answer of your questions are as

    1. You can find bluetooth power state by using
    CRepository* crep = CRepository::NewL(KCRUidBluetoothPowerState);
    CleanupStack::PushL(crep);
    TInt value = 0;
    User::LeaveIfError(crep->Get(KBTPowerState, value));

    2. See below link i have already answered this question
    http://discussion.forum.nokia.com/fo...d.php?t=160881

    3. Again Use CentralRepository to turn Bluetooth Off.

    Regards,
    Sumit

  3. #3
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    there u have given a code to see active blue tooth devices.
    can u clear what u do mean by active blue tooth devices.

    does it mean device is on and sending n receiving data




    Quote Originally Posted by sumit.rathi View Post
    Hi,

    According to best of my knowledge answer of your questions are as

    1. You can find bluetooth power state by using
    CRepository* crep = CRepository::NewL(KCRUidBluetoothPowerState);
    CleanupStack::PushL(crep);
    TInt value = 0;
    User::LeaveIfError(crep->Get(KBTPowerState, value));

    2. See below link i have already answered this question
    http://discussion.forum.nokia.com/fo...d.php?t=160881

    3. Again Use CentralRepository to turn Bluetooth Off.

    Regards,
    Sumit

Similar Threads

  1. Replies: 3
    Last Post: 2008-09-09, 04:53
  2. Bluesoleil Software
    By kencooper in forum Bluetooth Technology
    Replies: 9
    Last Post: 2008-08-29, 19:46
  3. Bluetooth using RSocket - sending data
    By VigenIssahhanjan in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-04-20, 23:23
  4. Sending data via bluetooth on Nokia 6600
    By obiwk in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-12-28, 08:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved