×
Namespaces

Variants
Actions

Bluetooth device class cannot be retrieved if Bluetooth is not activated

From Nokia Developer Wiki
Jump to: navigation, search



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

Description

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.

Solution

No known solution.

This page was last modified on 15 June 2012, at 05:07.
63 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.

×