Part Number:CC2640
简单外设 例程 如果更改外设名称?
Kevin Qiu1:
在simple_peripheral.c中找到下面代码进行修改:
// Scan Response Data static uint8_t scanRspData[] = {// complete name17,// length of this dataGAP_ADTYPE_LOCAL_NAME_COMPLETE,'S','i','m','p','l','e','P','e','r','i','p','h','e','r','a','l',// connection interval range5,// length of this dataGAP_ADTYPE_SLAVE_CONN_INTERVAL_RANGE,LO_UINT16(DEFAULT_DESIRED_MIN_CONN_INTERVAL),// 100msHI_UINT16(DEFAULT_DESIRED_MIN_CONN_INTERVAL),LO_UINT16(DEFAULT_DESIRED_MAX_CONN_INTERVAL),// 1sHI_UINT16(DEFAULT_DESIRED_MAX_CONN_INTERVAL),// Tx power level2,// length of this dataGAP_ADTYPE_POWER_LEVEL,0// 0dBm };
,
user1303469:
改了,没有用
,
Kevin Qiu1:
还需要修改:
static uint8_t attDeviceName[GAP_DEVICE_NAME_LEN] = "Simple Peripheral";