SPS_SERVER enable RD propertiy

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
prasanth.velliy...
Offline
Last seen:1 year 9 months ago
加入:2016-02-18 12:18
SPS_SERVER enable RD propertiy

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:
MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi prasanth,

Hi prasanth,

No, there is nothing additional to be done, these changes should allow you to read the characteristic.

Thanks MT_dialog