Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:45, 29 November 2007.

How to get Connected Bluetooth Device Address

From Forum Nokia Wiki

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.


Related Discussions
Thread Thread Starter Forum Replies Last Post
Device-Identification magicsource Mobile Java General 8 2005-09-03 08:34
Bluetooth virtual driver (device) akbet Bluetooth Technology 0 2007-06-26 14:45
Bluetooth connection with several servers(PC) extra2use1 Bluetooth Technology 5 2007-03-19 15:04
Microchip Embeded Bluetoth device. megaady General Symbian C++ 0 2006-01-23 11:16
How Check if a Bluetooth connection is active AGiuliani Bluetooth Technology 1 2007-05-22 09:16
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZbluetoothQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX