if you see file "at .h",
I want to use ATT_DECL_INCLUDE
I try declare include service attribute< / p > < p >//-------------------------------------------------------------------------------------------------------------< br / >, const struct attm_desc sample128_att_db [SAMPLE128_IDX_NB] = < br / > {< br / > / /服务此话< br / > [SAMPLE128_IDX_SVC] = {ATT_DECL_PRIMARY_SERVICE,烫(RD,启用),sizeof (sample128_svc), < br / > sizeof (sample128_svc),(uint8_t *)&sample128_svc},
// DISS Service Declaration
[SAMPLE128_IDX_INCL_DISS_SVC] = {ATT_DECL_INCLUDE, PERM(RD, ENABLE),sizeof(struct att_incl_desc), 0, NULL},
…
status = attm_svc_create_db(&(uint8_t *)&cfg_flag, SAMPLE128_IDX_NB, &att_tbl [0], dest_id, sample128_att_db [0]); < br / >…< br /> //------------------------------------------------------------------------------------------------------------- p > < p >但我不知道如何填DB“struct att_incl_desc”< / p > < p >我可以看看示例使用包括服务属性吗? < / p > < p >(在示例需要信息)< br / > 1。当
发送msg REQ_DB_CREATE
func req_db_create_hendler
how
get diss_service_start_handle
get diss_service_end_handle
//-----------------------------------------------------
/// include service entry element
struct att_incl_desc
{
/// start handle value of included service
uint16_t start_hdl;
/// end handle value of included service
uint16_t end_hdl;
/// attribute value UUID
uint16_t uuid;
};
//-------------------------------------------------------
thank you.