我加加一圈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},
};
你可以参考附件里的文章an-b-029和代码,学校如何添加一个服务服务。