问题
硬件: nrf51822开发板
软件: MDK
SDK: nRF5_SDK_12.3.0_d7731ad
工程是基于
nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\ble_app_uart
在开发nrf51822过程中,发送大概3分钟未连接蓝牙后,就再也搜索不到该蓝牙,只能通过复位才能重新搜索到蓝牙,必现。
原因
在广播初始化中
/**@brief Function for initializing the Advertising functionality.
*/
static void advertising_init(void)
{
uint32_t err_code;
ble_advdata_t advdata;
ble_advdata_t scanrsp;
ble_adv_modes_config_t options;
// Build advertising data struct to pass into @ref ble_advertising_init.
memset(&advdata,