I add a streamdatad service, do not know where to set up and modify, add it in
The static const struct attm_desc streamdatad_2_att_db [STREAMDATAD_IDX_NB] =
{
[STREAMDATAD_IDX_PRIM_SVC] = / * StreamData Device service * /
{ATT_DECL_SECONDARY_SERVICE, PERM (RD, ENABLE),
Sizeof (streamdatad_svc_2), sizeof (streamdatad_svc_2),
(uint8_t *) & streamdatad_svc_2},
[STREAMDATAD_IDX_STREAMDATAD_D0_CHAR] = {ATT_DECL_CHARACTERISTIC, PERM (RD, ENABLE), sizeof (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, ENABLE) | PERM (NTF, ENABLE), 20, 0, (uint8_t *) NULL},
[STREAMDATAD_IDX_STREAMDATAD_D0_EN] = {ATT_DESC_CLIENT_CHAR_CFG, (PERM (RD, ENABLE) | PERM (WR, ENABLE) | PERM (NTF, ENABLE)), sizeof (uint16_t), 0, (uint8_t *) NULL},
[STREAMDATAD_IDX_STREAMDATAD_D0_DESC] = {ATT_DESC_CHAR_USER_DESCRIPTION, PERM (RD, ENABLE), STREAMDATAD_D_DESC_LEN, STREAMDATAD_D_DESC_LEN, (uint8_t *) streamdatad_d_desc},
};
You can refer to the document in the attachment the AN - B - 029 and code, learn how to add a service service.