I would like to check whether there’s a message in a task queue without having to actually read/copy out the message. Is there a way to do this?
Do you know the comprehensive API docs like Queue Management - FreeRTOS™ (including e.g. uxQueueMessagesWaiting
) ?
1 Like
I didn’t stumble upon those in my searching. I saw a list of API functions and thought that was it. I totally missed the link to the “extra” functions.
Thank you!
There is a very interesting instruction.
Called xQueuePeek()
It reads the data from the queue and does not remove it from the queue.
It may be interesting for you.
A little logic lets you see if messages have arrived.
1 Like