Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:17, 29 August 2007.

KIS000704 - Trying to switch Bluetooth on with the Power State API does not work

From Forum Nokia Wiki

Trying to switch Bluetooth on with the Power State API does not work KIS000704
Overview Changing the Bluetooth power state with SDK Central Repository keys does not work.
Category Symbian C++
Subcategory Local connectivity, Bluetooth
Reported against S60 3rd Edition,
S60 3rd Edition, FP1
Date identified July 4, 2007
Symptoms -
Detailed description The header file "btserversdkcrkeys.h" includes Central Repository keys for controlling the Bluetooth power state. However, setting the power state to EBTPowerOn does not switch Bluetooth on even though the status icon indicates that it is activated.
How to reproduce   CRepository* cenRep = CRepository::NewLC( KCRUidBluetoothPowerState );
  TInt state, err = KErrNone;
  cenRep->Get( KBTPowerState, state );
  if( state == EBTPowerOff )
      {
      err = cenRep->Set( KBTPowerState, EBTPowerOn );
      }
  CleanupStack::PopAndDestroy(); // cenRep
  
Solution Use the Bluetooth Notifier API to switch Bluetooth on.
Related Discussions
Thread Thread Starter Forum Replies Last Post
Bluetooth and Symbian OS (9200 Communicator and 7650)? ask_expert Bluetooth Technology 1 2002-05-10 17:37
Problems. 6310 used with a Cark-91 Car Hands Free Kit joatamon Mobile Java General 3 2002-08-20 22:18
Phone<->PC Comunication JustBurn Mobile Java Networking & Messaging & Security 1 2005-07-01 06:17
how to get powerkey's(switchoff button) keyevents winsys General Symbian C++ 0 2007-01-25 05:20
detect power off event enhariharan General Symbian C++ 2 2004-09-20 11:09
 
Powered by MediaWiki