Is there any way for a Peripheral to get a Central device's name when establishing a bluetooth connection (BLE)? I'm unsure if Bleno has the tools necessary to get this.
Asked
Active
Viewed 575 times
1 Answers
2
Just read the Device Name in the remote GATT server. The peripheral must support GATT client in order to be able to read the device name.

Emil
- 16,784
- 2
- 41
- 52
-
I always understood that the GATT client was central, and the peripheral the server, so here are you suggesting my peripheral should/could also be the GATT client? – Gildo Conte Jan 17 '20 at 16:46
-
1Wrong, peripheral/central is a concept in GAP and relates to advertising, scanning and connection establishment. It has nothing to do with GATT. As can be read in Bluetooth Core specification v5.2, Vol 3 Part C (Generic Access Profile), section 15.2: Devices implementing either the LE Peripheral or LE Central role must always implement a GATT Server (mandatory). GATT Client is optional. So yes a peripheral can also be GATT client. – Emil Jan 17 '20 at 17:02
-
Ok that really clarifies things. Thanks a bunch! – Gildo Conte Jan 17 '20 at 17:20