< 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 >你好,< / p > < p >我有一个问题让芯片发送广告因为我需要它们。
我需要做的是添加两个不完整的服务id列表到一个单一的广告,因为我的客户要求它。< br / > # define USER_ADVERTISE_DATA " \ x03 " \ < br / > ADV_TYPE_INCOMPLETE_LIST_16BIT_SERVICE_IDS \ < br / > \ x70 \ x31“\ < br / > " \ x03 " \ < br / > ADV_TYPE_INCOMPLETE_LIST_16BIT_SERVICE_IDS \ < br / > \ x70 \ x30”< / p > < p >设置导致调试器停止直接发送没有任何广告,它在nmi_handler.c结束。如果我删除一个不完整的列表,广告发送。
Works:
#define USER_ADVERTISE_DATA "\x03"\
"\x70\x31"
Works:
#define USER_ADVERTISE_DATA "\x03"\ x03"\
ADV_TYPE_INCOMPLETE_LIST_16BIT_SERVICE_IDS\
"\x70\x30"
Works:
#define USER_ADVERTISE_DATA "\x03"\
ADV_TYPE_INCOMPLETE_LIST_16BIT_SERVICE_IDS\
"\x70\x31" \
"\x03"\
结果是一样的。 我希望有人能给我一个提示,为什么芯片拒绝发送两个id都不完整的广告。 This can be replicated by using the barebone example of the sdk and setting this as the advertisement data in user_config.h.
Best regards,
Tim