yabo国际娱乐对话半导体客户支持-服务属性 https://support.dialog-semiconductor.com/resource-keywords/service-attribute 如何使用包括服务属性?(ATT_DECL_INCLUDE) https://support.dialog-semiconductor.com/how-use-include-service-attribute-attdeclinclude < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >/*---------------- 声明 -----------------*/< br / > / / /主服务声明
ATT_DECL_PRIMARY_SERVICE = 0x2800,
///从服务声明
ATT_DECL_SECONDARY_SERVICE,
// Include声明
ATT_DECL_INCLUDE,
// Characteristic声明
ATT_DECL_CHARACTERISTIC,

如果你看到文件“at .h”,你可以找到这个内容

我想使用ATT_DECL_INCLUDE

我尝试声明包括服务属性。< / 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),
// 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(&sample128_env. env);sample128_shdl, (uint8_t *)&cfg_flag, SAMPLE128_IDX_NB, &sample128_env。att_tbl [0], dest_id, sample128_att_db [0]); < br / >…< br /> //------------------------------------------------------------------------------------------------------------- < p >但我不知道如何填DB“struct att_incl_desc”< / p > < p >我可以看看示例使用包括服务属性吗? < / p > < p >(在示例需要信息)< br / > 1。当
send msg REQ_DB_CREATE

2。
func req_db_create_hendler

3。 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.

2015年3月12日星期四10:02:50 +0000 smher68 1194年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/how-use-include-service-attribute-attdeclinclude#comments