Skip to main content
lorant124
Associate II
August 16, 2021
Solved

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

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

This topic has been closed for replies.
Walid ZRELLI
Walid ZRELLIBest answer
Visitor II
August 23, 2021

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

1 reply

Walid ZRELLI
Walid ZRELLIBest answer
Visitor II
August 23, 2021

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