DA14580 Smart Dice firmware, read operation handler

4 posts / 0 new
Last post
anson2004
Offline
Last seen:6 years 3 months ago
加入:2014-02-25 06:58
DA14580 Smart Dice firmware, read operation handler

我读the source code of DA14580 Smart Dice firmware code. In accel_task.c, I figure out it deals with the write and notification operation for accelerometer profile. But I did not find read operation request handler? Could someone help me to locate that or I miss understand the structure of source code?

WT_Dialog
Offline
Last seen:3 years 1 month ago
工作人员
加入:2013-12-05 14:43
Hi Anson,

Hi Anson,

Do you mean the hander that is triggerred when a peer device is trying to read the value of the accelerometer?

anson2004
Offline
Last seen:6 years 3 months ago
加入:2014-02-25 06:58
Yes, I mean that. Can you

Yes, I mean that. Can you specific this function?

WT_Dialog
Offline
Last seen:3 years 1 month ago
工作人员
加入:2013-12-05 14:43
安森,

安森,

Unfortunaltely there is not such a handler at this moment. That means the read will be noticed on a GATT server device. The best approach at this moment is to regularly update the value in characteristics.