标题: nrf51822广播数据 [打印本页] 作者: lqab1983 时间: 2016-7-25 16:48 标题: nrf51822广播数据 您好,我是先接触的CC2541再转到的nrf51822.有关广播数据内容我想请教下?
在CC2541里,广播数据在数组里定义,比较直观
static uint8 advertData[] =
{
0x02, // length of this data
GAP_ADTYPE_FLAGS,
DEFAULT_DISCOVERABLE_MODE | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,
// service UUID, to notify central devices what services are included
// in this peripheral
0x0c, // length of this data
//GAP_ADTYPE_16BIT_MORE, // some of the UUID's, but not all
//LO_UINT16( SIMPLEPROFILE_SERV_UUID ),
//HI_UINT16( SIMPLEPROFILE_SERV_UUID ),
0x09,
0x4d,
0x54,
0x4b,
0x42,
0x54,
0x44,
0x45,
0x56,
0x49,
0x43,
0x45,
};