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.
12 years, 1 month ago.
CAN read: does it block?
HI,
Simple put, does the CAN .read(..) method block?
Does it have a timeout, and if so what is it?
Is there anywhere I can find the answers to this, or make any changes? i.e. in some header files?
Thanks, Adam.
1 Answer
12 years, 1 month ago.
Hi Adam,
Read is non-blocking. Here is one link to the API.
Depending on your needs, you may also want to look at the attach method, then an inbound message event passes it to your function immediately.