Hi Folks,
I have some doubts on how the ping callback function works and when is it called during certain scenario. Assume the ping timeout interval is set to 300 ms and time for ping to complete is 200 ms for the following scenarios:
Scenario: Currently my router is up and pings are working well with the callback function being called regularly, after each ping completes. Now, consider, if the ping has started and is in progress and 100ms has passed, and suddenly the router goes down in the middle of the progress.
Questions: For the above scenario
1. What will happen to the callback function?, will it be called when the router is down?
2. Since the router went down in the middle and did not allow the ping to complete, will the ping timeout after 300 ms and after the time out, will the ping callback function be called?
3. Now after the router comes up again, will the cc3200 automatically connect back to the router or we have to again call the function "wlanconnect" to reconnect to the router?
I noticed that, if my router goes down, the ping succeeds returning 0 for the API lRetVal = sl_NetAppPingStart((SlPingStartCommand_t*)&pingParams_ds, SL_AF_INET,(SlPingReport_t*)&pingReport_ds, PingCallBack);, but the ping callback function is not called and it gets stuck there. I believe that in this case the ping should time out and the ping call back function is called?.
Please, any support and advises regarding working of ping call backs with respect to router up and down scenarios as described above, would be greatly appreciated.