Set own names for BLE Service and BLE Characteristic

hoahoctro
Posts: 5
Joined: Thu Jul 11, 2019 3:47 pm

Set own names for BLE Service and BLE Characteristic

Postby hoahoctro » Fri Oct 25, 2019 4:17 pm

Hi
How can i set own name for a BLE Service and BLE characteristic using ESP32 lib (nkolban), example: "This's my service", "This's my char" ?
Docs found just say about default BLE Service/Characteristic names provided from bluetooth.com, if i create a service/characteristic with my own UUID, the name shown is "Unknown Service/Characteristic"
Thanks :)

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Set own names for BLE Service and BLE Characteristic

Postby chegewara » Sat Oct 26, 2019 3:10 am

Hi,
It will always display unknown service/characteristic no matter what you do with esp32 code, because it's client app logic (nRF connect or similar you're using) to know and display names.

What you can do is to use 0x2901 descriptor(Characteristic Presentation Format)
https://www.bluetooth.com/specification ... scriptors/

Who is online

Users browsing this forum: No registered users and 118 guests