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.

non-blocking simple_link_recv

Hi,

I've been playing around with simple_link_recv from CC3000 Host Driver API. It says in the doxygen documentation that this should be a non-blocking function if you pass it the non-blocking flag (which I think is SOCKOPT_RECV_NONBLOCK).  However, it seems to block anyway. 

Is there a way to make simple_link_recv non-blocking?

Also,  if my controller is blocking, can I send data over the same socket from an interrupt subroutine?

I would appreciate any help on the subject.

  • Hi Josh,

    You are supposed to use the SOCKOPT_RECV_NONBLOCK flag with the setsockopt(...) method, not with simple_link_recv(...).

    To answer your second question, if your MCU main process is blocked you should not be trying to send data from an interrupt handler routine.