BLE阅读特点和通知

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
witold
Offline
Last seen:9 months 1 week ago
加入:2019-07-11 09:57
BLE阅读特点和通知

Hi,

I am trying to configure READ characteristic with notification attribute. At the moment I can see this characteristic on android app (nRF Connect) with properties READ and NOTIFY. On android app, I can't see the possibility to subscribe this characteristic. To update value in this characteristic, I have to press read button manually.

Is there any tutorial or demo/example that shows how to configure that kind of characteristic?

Best regards,

Witold

Device:
PM_Dialog
Offline
Last seen:5 hours 5 min ago
Staff
加入:2018-02-08 11:03
Hi Witold,

Hi Witold,

Please take a look at theDA1469x Tutorial BLE Custom Servicetutorial from our support web site. This tutorial demonstrates how to create a custom service which includes one characteristic declaration with write-read-notify access permissions. Please check step 5 in Section 2. In your case you should have GATT_PROP_READ | GATT_PROP_NOTIFY access permissions.

Thanks, PM_Dialog

witold
Offline
Last seen:9 months 1 week ago
加入:2019-07-11 09:57
Hi,

Hi,

now I see my mistake. Every characteristic which uses notify must have descriptor.

Now it works!

Thanks,

Witold

PM_Dialog
Offline
Last seen:5 hours 5 min ago
Staff
加入:2018-02-08 11:03
Hi Witold,

Hi Witold,

Glad that you are able to create a characteristic with notify/write properties and thanks for accepting my answer.

Thanks, PM_Dialog