2个帖子/ 0新
最后一篇
ROC0106.
离线
最后一次露面:4个月5天前
加入:2016-08-31 01:55
怎么添加工史丁德坦服务

我加加一圈StreamDatad服务,不在在哪些地上还设置和修改,怎么样把它添加进去
static const struct attm_desc streamdatad_2_att_db [streamdatad_idx_nb] =
{
[StreamDatad_idx_prim_svc] = / * StreamData设备服务* /
{att_decl_secondary_service,perm(rd,启用),
sizeof(StreamDatad_svc_2),sizeof(StreamDatad_svc_2),
(UINT8_T *)&StreamDatad_svc_2},

[StreamDataD_IDX_StreamDatad_D0_Char] = {ATT_DECL_CHARACTION,PERIZOF(StreamDatad_D0_CHAR),SIZEOF(StreamDatad_D0_CHAR),(uint8_t *)和StreamDatad_d0_char},
[StreamDatad_idx_StreamDatad_d0_val] = {StreamDatad_D0_UUID,PERM(RD,ENABLE)|perm(wr,启用)|perm(ntf,启用),20,0,(uint8_t *)null},
[StreamDatad_idx_StreamDatad_D0_EN] = {att_desc_client_char_cr_cfg,(perm(rd,启用)| perm(wr,启用)| perm(ntf,启用)),sizeof(uint16_t),0,(uint8_t *)null},
[StreamDataD_IDX_StreamDatad_d0_desc] = {att_desc_char_user_description,perm(rd,启用),streamdatad_d_desc_len,streamdatad_d_desc_len,(uint8_t *)streamdatad_d_desc},
};

设备:
Gongyu_dialog.
离线
最后一次露面:22小时48分钟前
加入:2016-04-27 07:07
你可以参考参考里那里的文章AN-B-029和代码

你可以参考附件里的文章an-b-029和代码,学校如何添加一个服务服务。

依恋: