|
发表于 2015-5-28 14:48:45
只看该作者
16#
本帖最后由 ydz 于 2015-5-28 14:58 编辑
问题找到了! 还是自己对协议栈不熟引起的, 做如下修改就可以了。
/// Full LLS Database Description - Used to add attributes into the database
const struct atts_desc proxr_lls_att_db[LLS_IDX_NB] =
{
// Link Loss Service Declaration
[LLS_IDX_SVC] = {ATT_DECL_PRIMARY_SERVICE, PERM(RD, ENABLE), sizeof(proxr_lls_svc)
sizeof(proxr_lls_svc), (uint8_t *)&proxr_lls_svc
// Alert Level Characteristic Declaration
[LLS_IDX_ALERT_LVL_CHAR] = {ATT_DECL_CHARACTERISTIC, PERM(RD, ENABLE), sizeof(proxr_lls_alert_lvl_char),
sizeof(proxr_lls_alert_lvl_char), (uint8_t *)&proxr_lls_alert_lvl_char},
// Alert Level Characteristic Value
[LLS_IDX_ALERT_LVL_VAL] = {ATT_CHAR_ALERT_LEVEL, PERM(RD, ENABLE) | PERM(WR, ENABLE), sizeof(uint8_t),
0, NULL},
}; |
|