Hello,

I tried get own Bluetooth device address, throught RSocket, but got 000000000000,
What's wrong?
Header file:

#include <bt_sock.h>

RSocketServ iSocketServer;
RSocket iSock;
TBTDevAddrPckg iDevAddrPckg;

.cpp file

User::LeaveIfError(iSocketServer.Connect());

TProtocolDesc protocolInfo;

User::LeaveIfError(iSocketServer.FindProtocol((TBuf<32> &)KBTProtocol, protocolInfo));

User::LeaveIfError(iSock.Open(iSocketServer, KBTAddrFamily, KSockSeqPacket, KL2CAP));


void CLkBTUtil::LocalBTDevAddr()
{
iSock.Ioctl(KHCILocalAddressIoctl, iStatus, &iDevAddrPckg, KSolBtL2CAP);
SetActive();
}

void CLkBTUtil::RunL()
{
HBufC* iBuffer = HBufC::NewL(KInfoBTDevAddr);
TPtr buf = iBuffer->Des();
iDevAddrPckg().GetReadable(buf);

__LOGWRITEBT1("Local BTDevAddr: %S", &buf);
}

I used Series 60 Sdk v.2

in SDK s60_FP2, return error.

regards,
Igor