Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Smart Bluetooth Forum Discussions

Anonymous
Not applicable

Hi,

I can use emconninfo_getPeerAddr() api get connected device mac address,but I not found api get connected device name.

0 Likes
1 Solution
VictorZ_46
Employee
5 comments on blog 25 sign-ins 250 likes received
Employee

Stack knows the address of the device which it is connected to, but name is typicaly not known.  If you application is a client and performed scanned, the name of the peer device might show up in the advertisement_report.  Meanwhile it is optional for an advertiser to include device name.  The only reliable way to get peer's name is to read name characteristic from device's database.  You should be able to register read response callback and then do bleprofile_sendReadByType for UUID_CHARACTERISTIC_DEVICE_NAME (0x2a00).

View solution in original post

2 Replies
VictorZ_46
Employee
5 comments on blog 25 sign-ins 250 likes received
Employee

Stack knows the address of the device which it is connected to, but name is typicaly not known.  If you application is a client and performed scanned, the name of the peer device might show up in the advertisement_report.  Meanwhile it is optional for an advertiser to include device name.  The only reliable way to get peer's name is to read name characteristic from device's database.  You should be able to register read response callback and then do bleprofile_sendReadByType for UUID_CHARACTERISTIC_DEVICE_NAME (0x2a00).

Anonymous
Not applicable

It's OK.Thank you for your help.

0 Likes