Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Bluetooth device class cannot be retrieved if Bluetooth is not activated

From Wiki
Jump to: navigation, search

Article Metadata
Tested with
Devices(s): N8
Platform(s): Symbian^3 and later
Created: patrickfrei (28 Sep 2010)
Last edited: hamishwillee (15 Jun 2012)


The Bluetooth device class can be retrieved using the Publish and Subscribe(PS) keys KUidSystemCategory and KPropertyKeyBluetoothGetDeviceClass. However, when the device is rebooted, the initial value of the PS key is set to NULL and any attempt to read the Bluetooth device class using this key will return an empty value.

Thus, after the phone reboot, the Bluetooth device class can be retrieved only after Bluetooth has been powered on at least once.

How to reproduce

Reboot the phone. Without starting Bluetooth, try to retrieve the Bluetooth device class using the (slightly modified) code snippet from the Wiki page How to get local Bluetooth Device Address, i.e. replace the code concerning the Bluetooth device address by code concerning the Bluetooth device class.


No known solution.

This page was last modified on 15 June 2012, at 02:07.
45 page views in the last 30 days.