Hi Dialog
I an iusing DSPS slave project , i want to add ATT_CHAR_PROP_RD to the spss_tc_data_char()
@file sps_server.c
/// SPS Service - TX Data Characteristic
static struct att_char128_desc spss_tx_data_char = {(ATT_CHAR_PROP_RD | ATT_CHAR_PROP_NTF),
{0,0},
SPS_SERVER_TX_UUID};
// TX Data Characteristic Value
[SPSS_IDX_TX_DATA_VAL] ={(单位8_t*)spss_tx_data_val.uuid, ATT_UUID_128_LEN, PERM(RD, ENABLE) | PERM(NTF, ENABLE),
SPS_SERVER_TX_CHAR_LEN, 0, NULL},
is there any other changes i have to do Inorder to enable read permission ???
谢谢你!
Device:
Hi prasanth,
No, there is nothing additional to be done, these changes should allow you to read the characteristic.
Thanks MT_dialog