I'm trying to get the local bluetooth address using KPropertyKeyBluetoothGetLocalDeviceAddress, but I'm getting only zeros in the TBTDevAddr, and RProperty::Get() returns KErrNone. One of these results is obviously wrong.
Here's my code:
I've tried it on an E61i and an N73, with the same results. Results are also the same whether or not Bluetooth is turned on.
int result = RProperty::Get(KUidSystemCategory, KPropertyKeyBluetoothGetLocalDeviceAddress, pckg);
LOG("result: %i\n", result);
I've also tried the RSocket Ioctl KHCILocalAddressIoctl, but that returns KErrNotSupported.