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.

蓝牙从机事件处理函数 SimpleBLEPeripheral_ProcessEvent的疑问



蓝牙从机事件处理函数 SimpleBLEPeripheral_ProcessEvent以下程序


if ( events & SBP_PERIODIC_EVT )
{
// Restart timer
if ( SBP_PERIODIC_EVT_PERIOD )
{
osal_start_timerEx( simpleBLEPeripheral_TaskID, SBP_PERIODIC_EVT, SBP_PERIODIC_EVT_PERIOD );
}

// Perform periodic application task
performPeriodicTask();

delay(10000);    //为什么这里给一个比较长的延时函数,蓝牙会自动断开连接(或者在这个事情处理中调用的某个函数,此函数内调用比较长的延时函数,蓝牙都                   会断开连接,为什么???)

return (events ^ SBP_PERIODIC_EVT);
}