dynamic characteristic data

2 posts / 0 new
Last post
paulb231
Offline
Last seen:10月3周前
加入:2016-08-31 14:53
dynamic characteristic data

Hi
in a cust1 implementation, where does the data for the characteristic actually get stored ?
I have set
custs1_att_db[CUST1_IDX_MYCHAR_VAL] = {CUST1_MYCHAR_UUID, ATT_UUID_128_LEN, PERM(RD, ENABLE),
DEF_CUST1_MYCHAR_CHARLEN, 4, z_mydata},

char z_mydata[4] = {1,2,3,4}

The first time I read the characteristic I get 1,2,3,4,
but if I change z_mydata at any point, I sill only read 1,2,3,4 no the new value - is it 'cached' somewhere ??

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi paulb231,

Hi paulb231,

的数据are located in the BLE database and are allocated dynamically in the DB_HEAP, by changing the variable that you have used in order to set tha data in the database wont alter the data in the database itself. In order to alter the data in the database you can use the functions indicated on this posthttps://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl....

Thanks MT_dialog