upSendFile_thread_entry 逻辑更新,发送前判断TT状态,避免临时掉线
This commit is contained in:
parent
76f214d431
commit
de1a6633af
@ -469,12 +469,13 @@ static void upSendFile_thread_entry(void *parameter)
|
||||
{
|
||||
if (!f->index || (var+1) == f->index)
|
||||
{ //index=0 全发,或者仅发index
|
||||
if (sendMsg(d[var], s[var]) == RT_EOK) {
|
||||
if (isTTjh() && sendMsg(d[var], s[var]) == RT_EOK) {
|
||||
LOG_D("send pack[%d] with %d bytes done.",var+1,s[var]);
|
||||
}
|
||||
else {
|
||||
LOG_E("TT未到位或发送失败");
|
||||
issendall=0;
|
||||
break;
|
||||
// break;
|
||||
}
|
||||
rt_thread_mdelay(3000);//发送间隔,目前服务器未处理,暂设为3s避免粘包
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user