×
Namespaces

Variants
Actions

How to get Connected Bluetooth Device Address

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: vasant21 (30 Apr 2007)
Last edited: hamishwillee (26 Jul 2012)
The following code snippets will help you getting the Bluetooth Address of the device which is connected to your device.
 
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.


This page was last modified on 26 July 2012, at 05:10.
62 page views in the last 30 days.
×