Archived:Trying to switch Bluetooth on with the Power State API does not work (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Changing the Bluetooth power state with SDK Central Repository keys does not work on S60 3rd Edition and FP1 devices.

Article Metadata
Platform(s): S60 3rd Edition, S60 3rd Edition FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Created: User:Technical writer 1 (29 Aug 2007)
Last edited: hamishwillee (19 Jun 2012)


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


Use the Bluetooth Notifier API to switch Bluetooth on.

This page was last modified on 19 June 2012, at 11:01.
46 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.