How could I find some information about some functions like attmdb_att_set_value

8 posts / 0 new
Last post
lyncxy119
Offline
Last seen:1 year 11 months ago
加入:2015-05-14 03:23
How could I find some information about some functions like attmdb_att_set_value

Sometimes I can't found any information about functions like attmdb_att_set_value, atts_write_rsp_send,attmdb_att_update_value.
Are there some files that describe these functions?I have search many files and still can't find any information.
If there is really not any information about these function,it may be marvelous.I can't understand the application structure without these information.

Device:
JE_Dialog
Offline
Last seen:6 hours 30 min ago
工作人员
加入:2013-12-05 14:02
Hi there, the best place to

Hi there, the best place to start is AN-B-029 : attmdb_att_set_value is a core part of the profile generation , and this document describes how it is generated. Its also a good general tutorial that will help you navigate your way through the software architecture. BR JE_Dialog

lyncxy119
Offline
Last seen:1 year 11 months ago
加入:2015-05-14 03:23
Thank you!

Thank you!
I have ever seen this file.I found that it only tells us how to do .I still can't understand software architecture deeply.Is there other files?

lyncxy119
Offline
Last seen:1 year 11 months ago
加入:2015-05-14 03:23
Anyone there?

Anyone there?

JE_Dialog
Offline
Last seen:6 hours 30 min ago
工作人员
加入:2013-12-05 14:02
For understanding the

For understanding the software architecture : which documentation or which project have you looked at already ? we do accept it can be complex, and we will have a more simple SDK . The Dialog Serial Port Service is probably a good starting point at project level to understand the SW architecture. BR JE_Dialog

lyncxy119
Offline
Last seen:1 year 11 months ago
加入:2015-05-14 03:23
Thanks you so much!

Thanks you so much!
The files I looking at:
UM-B-015_DA14580 Software architecture v4.0
UM-B-003 Software Development Guide 1.4
UM-B-006 Sleep mode configuration
DA14580_Software_Architecture
...
Maybe I will read them one more time.

gayan_gamage
Offline
Last seen:4 years 8 months ago
加入:2016-04-28 21:23
我created a custom service

我created a custom service and I need to set a value of the characteristics at the start up and used attmdb_att_set_value(custs2_env.shdl+ CUST2_IDX_CTX_VAL, sizeof(uint8_t), &sample); and when i connect to the ble with and app and read the value, it is not coming. What is the reason here?

MT_dialog
Offline
Last seen:1 month 5 days ago
工作人员
加入:2015-06-08 11:34
Hi gayan_gamage,

Hi gayan_gamage,

Where do you invoke tha attmdb_att_set_value, is the profile enabled when this functions is called ? Only when the profile is enabled you can set a value in the database otherwise the function will return that the attribute you are trying to update does not exist. You can try to read the output of the function and check the return value, the possible outputs of that particular function are indicated to the declaration of the function in the attm_db.h file.

Thanks MT_dialog

Topic locked