Anonymous
Not applicable
Dec 30, 2014
08:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 30, 2014
08:29 AM
Hi,
I can use emconninfo_getPeerAddr() api get connected device mac address,but I not found api get connected device name.
Solved! Go to Solution.
1 Solution
Dec 31, 2014
08:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 31, 2014
08:28 AM
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).
2 Replies