10 years, 1 month ago.

Using the Ticker class to do a UDP send

I have a ticker set to go off every 4mSec. When that ticker goes the routine has a "sendTo" call which ultimately is a "lwip_sendto()" call. When this happens I get the following:

sys_arch_protect error

Am I correct in assuming that this is expected behaviour and that there is a collision happening between the OS mutexes here? I have been using the Timer class and just waiting for it to count to 4mSec and then sending but that is a inferior solution to my requirement.

Cheers!!

Be the first to answer this question.