×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    May 2003
    Location
    India
    Posts
    136

    How can i find Bluetoth of device is on or off?

    Hi to all,
    How can i find bluetoth of device is on or off in series 60?

    Thanks,
    DB
    Last edited by deepakgmi; 2008-01-30 at 06:58.

  2. #2
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    Hi, Try this
    Code:
      TPckgBuf<TBool> pckg;
      RNotifier iNotifier;
      TPckgBuf<TBool> iNotifierResult;
      TRequestStatus status;
    
      User::LeaveIfError(iNotifier.Connect());
      iNotifier.StartNotifierAndGetResponse(status,KPowerModeSettingNotifierUid,pckg,iNotifierResult);
      User::WaitForRequest(status);
      User::LeaveIfError(status.Int());
    
      iNotifier.CancelNotifier(KPowerModeSettingNotifierUid);
      iNotifier.Close();
      User::LeaveIfError(iNotifierResult[0]);
    It always turn bluetooth on, but I don't know how to check bluetooth state.

Posting Permissions

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