1. 能不能把main.c里面的结构体改成下面的,这是把30改成了300。有时候因为网络的关系所以不稳定。
/* library configuration */
SlMqttClientLibCfg_t Mqtt_Client={
1882,
TASK_PRIORITY,
300,
true,
(long(*)(const char *, ...))UART_PRINT
};
Let’s increase the timeout from 30 to 300 in case network stability issue .
2. 还有就是函数tcp_recv在 cc31xx_sl_net.c里面,有DEBUG的选项,能否把这个打开之后给我看一下相应的LOG。
-------------------------------------------------------------------
如果有答案已经回答了您的问题,请标注为已回答。
Please close your question if it has been solved.
------------------------------------------------------------------