cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 Freertos - read specific item from queue without removing item from the queue.(peek)

lorant124
Associate III

Hi, I have STM32L496 and use Freertos 10.2.

Everything is fine, but I would like read data from queue without removing from the queue. I discovered function xQueuePeek() but I dont know how to use it if I can read specific item from Queue. For example I can check first and second item. Peek() function return only first item.

please help thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @lorant124​ ,

You can find in this reference all the details about the xQueuePeek() function with an example.

I hope this is helpful.

BeST Regards,

Walid

View solution in original post

1 REPLY 1

Hello @lorant124​ ,

You can find in this reference all the details about the xQueuePeek() function with an example.

I hope this is helpful.

BeST Regards,

Walid