This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, 各位专家
请教一个关于CC2540 BloodPressure Sample Application中的问题,
下面是程序中scanResponseData[]的定义:其中红色字体部分是0x12,但是后面的数据长度却是21(0x15)个,想知道这里为什么写0x12?
// GAP Profile - Name attribute for SCAN RSP data
static uint8 scanResponseData[] =
{
0x12, // length of this data
GAP_ADTYPE_LOCAL_NAME_COMPLETE,
'B',
'l',
'o',
'o',
'd',
'P',
'r',
'e',
's',
's',
'u',
'r',
'e',
' ',
'S',
'e',
'n',
's',
'o',
'r',
// connection interval range
0x05, // length of this data
GAP_ADTYPE_SLAVE_CONN_INTERVAL_RANGE,
LO_UINT16( DEFAULT_DESIRED_MIN_CONN_INTERVAL ), // 100ms
HI_UINT16( DEFAULT_DESIRED_MIN_CONN_INTERVAL ),
LO_UINT16( DEFAULT_DESIRED_MAX_CONN_INTERVAL ), // 1s
HI_UINT16( DEFAULT_DESIRED_MAX_CONN_INTERVAL ),
0x02, // length of this data
GAP_ADTYPE_POWER_LEVEL, //TX Power Level
0 // 0dBm
};