Part Number: CC3120MOD
We have a device that is regularly sending data to a cloud server. In order to make sure the connection is robust we did a number of tests by unplugging a router to disconnect abruptly. Some of these scenarios recovered just fine and others helped us discover where our software didn't handle backing out of the disconnect properly. One scenario that didn't recover nicely was a -2006 error. We found that if the program waited about 30 seconds after a disconnect error, we were able to recover every time. It seemed like the Wi-Fi thread needed some time to clean up after a disconnect. We are using an MSP432P4111 running TI-RTOS and the cloud server communications is running on its own low priority thread. The solution is acceptable. What is causing the recovery delay? Are we missing something? (I noticed that the Wi-Fi driver short timeout is 20 seconds).
Gary