sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
464 stars 180 forks source link

How to set service name ? #280

Open Entretoize opened 3 years ago

Entretoize commented 3 years ago

Is the service name needed to be "Unknown service" ? I don't see any source setting the service name or having several services, so how to recognize the good service ? Thanks

hannesweisbach commented 3 years ago

Afaik "Known" Services are only those defined by the Bluetooth standard, i.e. the Bluetooth SIG assigned numbers (https://www.bluetooth.com/de/specifications/assigned-numbers/).

You can however set the device name (BLEPeripheral::setDeviceName()), which is the device name under which the peripheral appears during advertising and you can set the local name (via BLEPeripheral::setLocalName()), which is shown after you have connected to the device.