Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

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

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

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

Anonymous
Not applicable

It's OK.Thank you for your help.

0 Likes