Hi,
We are using a CC3220MODASF module for our application. We add a profile,set auto and fast connection policies and then start the NWP using sl_Start().
Every 3 seconds, we check if the device is connected and has acquired an IP in order to send data to a server. If the device is not connected or hasn't acquired an IP, we restart the NWP using sl_Stop() and sl_Start(). When the router is restarted a number of times, it sometimes does not give an IP to the device. In such a situation, the device hits configASSERT in freertos and hangs.
We have the following questions:
1. Is there any minimum time wait on calling sl_Start after sl_Stop. Is the 3 second time insufficient? Could this lead to the assert?
The device works fine if the network process is restarted every 3 seconds when there is no profile added. What difference does adding a profile make?
2. We have resorted to this solution because the auto and fast connection policies were not reliable. The device could reconnect to a router only if there was a successful connection previously. Is that the correct behaviour of auto connect policy. According to our understanding,if auto connection policy is set, then the device should connect to the added profile whenever it is available.
Please advise.