那你这个应该是没设置recv的最大阻塞时间,你看一下at_socket.c里面的at_recvfrom的实现
/* set AT socket receive timeout */
if ((timeout = sock->recv_timeout) == 0)
{
timeout = RT_WAITING_FOREVER;
}
else
{
timeout = rt_tick_from_millisecond(timeout);
}
那你这个应该是没设置recv的最大阻塞时间,你看一下at_socket.c里面的at_recvfrom的实现
/* set AT socket receive timeout */
if ((timeout = sock->recv_timeout) == 0)
{
timeout = RT_WAITING_FOREVER;
}
else
{
timeout = rt_tick_from_millisecond(timeout);
}
举报