Hi,
During some testing we've found that sl_Send(...) returns -1. We suspect this is just a normal issue, specifically with Dropbox.
As a result of the failed send, we close the socket by issuing sl_Close(socketID)
We notice that sl_Close(..) returns SL_ERROR_BSD_ECLOSE, indicating "that the close socket failed to transmit all queued packets".
When I create a new socket, I notice the socket ID increments by one.
My questions are:
1. When I call sl_Close() and I get a response of SL_ERROR_BSD_ECLOSE, is the socket actually closed?
2. Is it the normal operation of the CC3120MOD to increment to the next socket ID when calling sl_Socket(..), or should it re-use the last closed socket?
3. If CC3120MOD does not re-use the last socket ID after a close, what happens when the socket ID reaches greater than 32K?
4. Can I do anything better to prevent the SL_ERROR_BSD_ECLOSE error?. Do I need to flush the socket somehow?
Thanks.