APP连接到3200后下发一系列数据(1024个字节),这部分没问题
3200端通过以下函数接收数据,但IRetVal返回的是0,为什么??
再通过什么办法进一步查找问题所在??
if( IS_IP_LEASED(g_ulStatus) && g_ConnectionOK)
{
lRetVal = sl_Recv(g_TcpSock.iNewSockDesc, (unsigned char *)&g_CtrlDataBuff, MAX_CTRL_PACKET_SIZE, 0);
}
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.
请参考一下这边的文档,实现CC3200 TCP数据通信,包含部分代码:processors.wiki.ti.com/.../CC3200_TCP_Socket_Application
完整代码可在CC3200SDK中找到