BLE阅读特点和通知

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
witold
Offline
Last seen:11 months 3 weeks 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:4 days 19 hours 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:11 months 3 weeks 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:4 days 19 hours 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