This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is sl_Send() blocking?

Other Parts Discussed in Thread: CC3100

Hi,

I'm trying to figure out whether the sl_Send() function is blocking or not (for cc3100).

In the docs it says this:

sl_Send – Writes data to the TCP socket. Returns immediately after sending data to device. In case of
TCP failure, an async event SL_NETAPP_SOCKET_TX_FAILED will be received. 

So I assume it's non blocking? In my app I have many sl_Send()s in a loop - how can I make it wait for the previous send to complete before proceeding to the next one?

Thanks!