NordicSemiconductor / pc-nrfconnect-ble

Bluetooth low energy app for nRF Connect for Desktop
Other
151 stars 43 forks source link

Custom service is not displayed when Notification characteristic ist added #279

Closed Kampi closed 1 year ago

Kampi commented 1 year ago

I´m using the BLE app (v4.0.4) for creating a simple testing server with one test service. This test service should contain three characteristic

The service is displayed correctly in the Connection Map by using these settings for the Notification Service:

image image

And it isn´t displayed when enabling Notify

image image

I also get the following message

13:59:13.887    Failed to set services
13:59:13.887    Expected Array or iterable object of values: 0
13:59:21.513    Failed to set services
13:59:21.513    Error occurred adding characteristic.

Is this a bug or I´m using the app wrong?

bihanssen commented 1 year ago

Hi. When adding a notify property to the characteristic, the setup expects a CCCD descriptor to be present. The descriptor needs to be added manually, as a child of the characteristic. I suspect that is the problem here.

Kampi commented 1 year ago

Hi @bihanssen

thanks. That solves the issue.