Characteristic's read command not working in updated SDK

⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
rajan22
Offline
Last seen:1 year 4 months ago
加入:2017-12-29 05:09
Characteristic's read command not working in updated SDK

Hi Dialog,

I am working on software DA14585_SDK 6.0.10.511 and hardware DA14585AC (DA14585 00000).
When I am trying to read ADC_1 characteristic's data, as in original code "ble_app_peripheral" project, data is not coming but through notification data is coming.

Earlier we were using same code but on DA14585_SDK 6.0.2 and DA14585AB then we able to read data through read and notification command both.

How I can read data without notification in DA14585_SDK 6.0.10.511?

Thanks

Keywords:
Device:
PM_Dialog
Offline
Last seen:12 hours 34 min ago
工作人员
加入:2018-02-08 11:03
Hi rajan22,

Hi rajan22,

The ADC_1 characteristic is a notifiable/readable characteristic, so you will get the updated values of the characteristic if you enable the notifications. Can you please clarify what you are trying to accomplish? Do you want to have a “read” characteristic without the notification property?

Thanks, PM_Dialog

rajan22
Offline
Last seen:1 year 4 months ago
加入:2017-12-29 05:09
Hi,

Hi,

I want "read" along with notification. So, in the case of reading sensor data, in long time period, I can send read command and whenever need data quickly then through notification. That's why "read" command needed in my application.

Thanks

PM_Dialog
Offline
Last seen:12 hours 34 min ago
工作人员
加入:2018-02-08 11:03
Hi rajan22,

Hi rajan22,

The read and notify permission are completely different procedures. The read request is sent by the central, and the notifications are sent from the peripheral in specific time periods. You could have both a readable and a notifiable characteristic, but I am not able to understand you are trying to accomplish with the combination of those in your application. In order to send notifications, the notifications should be enabled from the client side. Would you like to have the notifications enabled and since you read the characteristic, then the data are going to be sent through notifications?

Thanks, PM_Dialog