Hi,
I am currently going through tutorial 3. I am receiving the error below when I do step 13. Is there something I am missing in the tutorial because I looked for the att_decl_cfg and att_decl_user_desc and I could not find either.
..\src\custom_profile\user_custs1_def.c(304): error: #20: identifier "att_decl_cfg" is undefined
[CUST1_IDX_LONG_VALUE_NTF_CFG]={(uint8_t*)&att_decl_cfg,ATT_UUID_16_LEN,PERM(RD,ENABLE)|PERM(WR,ENABLE),sizeof(uint16_t),0,NULL},
..\src\custom_profile\user_custs1_def.c(306): error: #20: identifier "att_decl_user_desc" is undefined
[CUST1_IDX_LONG_VALUE_USER_DESC]={(uint8_t*)&att_decl_user_desc,ATT_UUID_16_LEN,PERM(RD,ENABLE),sizeof(CUST1_LONG_VALUE_CHAR_USER_DESC)-1,sizeof(CUST1_LONG_VALUE_CHAR_USER_DESC)-1, CUST1_LONG_VALUE_CHAR_USER_DESC},
谢谢You.
Hi michael12344,
Could you please indicate which version of SDK you are using? I would strongly recommend you to use our latest SDK which is version 6.0.10. This tutorial probably is based to previous version of SKD. Please check the bla_app_peripheral example of SDK6.0.10 ang you will see that there are some modification regarding the definition of the characteristics. For example the long value characteristic is defined as follow (in user_custs1_def.c file):
// Long Value Characteristic User Description
[SVC1_IDX_LONG_VALUE_USER_DESC] = {(uint8_t*)&att_desc_user_desc, ATT_UUID_16_LEN, PERM(RD, ENABLE), sizeof(DEF_SVC1_LONG_VALUE_CHAR_USER_DESC) - 1, sizeof(DEF_SVC1_LONG_VALUE_CHAR_USER_DESC) - 1, DEF_SVC1_LONG_VALUE_CHAR_USER_DESC},
谢谢s, PM_Dialog
Hi,
I am currently using the SDK version 6.0.10. The tutorial list SDK versions 5.0.x and versions 6.0.x.
https://support.dialog-semiconductor.com/resource/tutorial-3-custom-prof...
Hi michael12344,
The guidelines that I had provided you in my previous post are based on the top of SDK6.0.10. Could you please let me know if you have any other issues?
谢谢,PM_DIalog