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.

RE:CC3100使用非阻塞sl_Recv接收一小段时间卡死

Other Parts Discussed in Thread: CC3100

CC3100,AP例程,使用非阻塞sl_Recv接收一小段时间卡死,时间长短不一,几秒到几分钟都有。

关键代码:

sl_SetSockOpt(newSockID, SL_SOL_SOCKET, SL_SO_NONBLOCKING, &lNonBlocking, sizeof(lNonBlocking));

while (1)
{
Delay_ms(1);
Status = sl_Recv(newSockID, &(uBuft.BsdBuf[0]), 10, 0);

Delay_ms(1);

Status = sl_Send(newSockID, &(uBuft.BsdBuf[0]), 10, 0 );

}