How do you get the actual name of a low power bluetooth device?

I need to get the name of a friendly device from a security sensor. I want to find the device and tell the user that they are connected to "My Home Sensor", for example. I can find the device, but I do not know how to find this data.

In normal bluetooth, I believe that I can use BLUETOOTH_DEVICE_INFO or winsock. Is there a low-power bluetooth equivalent to bluetooth BLUETOOTH_DEVICE_INFO? If possible, could you give an example of how to get information (for example, device name)?

I use Windows 8.1, C ++, and visual studio 2013. I referenced windows dev docs, but so far have not found anything useful.

Thanks!

+5
source share
1 answer

Assuming you can connect to the GATT server, when analyzing the device’s GAP profile, you will find the attribute for the device name in the “Shared Profile” (GIP) section.

This is a list of all standard GATT services and their UUIDs. UUID for GAP - 0x1800.
This is a list of all standard features and their UUIDs. For the device name, the symbol name is 0x2A00.
This page explains that the Device Name feature is part of the GAP.

+5
source

Source: https://habr.com/ru/post/1233661/


All Articles