How to get Connected Bluetooth Device Address
Article Metadata
TSockAddr tSockAddr;
iAcceptedSocket.RemoteName(tSockAddr);
TBTDevAddr tBTDevAddr = static_cast<TBTSockAddr>(tSockAddr).BTAddr();
TBuf<25> tAddr;
tBTDevAddr.GetReadable(tAddr);
CEikonEnv::Static()->AlertWin(tAddr);
Here the iAcceptedSocket is the the socket after connecting to the remote device which available for read/write operations.
Originally taken from Retrieving the connected remote Bluetooth device's Address.


(no comments yet)