Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 5 months ago.
eth.attach() callback doesn`t work without idle time? (no wait() - no callback)
Hi! Experiencing some troubles with eth.attach() function. Here is an example:
Import programmbed-os-ethattach-fault
eth.attach() doesn`t work with threads without wait time
Uncomment Thread::wait(10); in onemorethread, and callbacks will work. Also, you can set thread priority to low, and all will work again.
But in my program I can`t set any "wait"s.
Is it a bug, or there are can be some good solution?
To reproduce - use nucleo with ethernet (767zi in my case), and unplug cable after successful connection. When there is a wait () - callback works,