×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    United Kingdom
    Posts
    78

    Bluetooth Status

    Hi all,

    I was wondering if there is anyway for an application to get notified if/when the Bluetooth module is deactivated by the user.

    Or perhaps if the is some way that I could poll (continually check) the state of some variable that is associated with the Bluetooth module that reflects its state.

    Thanks in advance.

  2. #2
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    Maybe this can help you,

    TPckgBuf<TBool> pckg;

    User::LeaveIfError(iNotifier.Connect());

    iNotifier.StartNotifierAndGetResponse(
    iStatus,
    KPowerModeSettingNotifierUid,
    pckg,
    iNotifierResult);

    iStateMachine=EStateCheckingBluetooth;
    SetActive();

    This code turns on Bluetooth.

    Bye

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Location
    United Kingdom
    Posts
    78

    Bluetooth status

    Thanks for your quick response. However, I am not trying to turn on Bluetooth, or turn it off. I just want to be made aware of its current status (On/Off), so that I can perform some appropriate action.

    Thanks again.

Posting Permissions

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