Back to Esp Idf

POSIX Message Queue Example

examples/system/rt_mqueue/README.md

6.1-dev1.1 KB
Original Source
Supported TargetsESP32ESP32-C2ESP32-C3ESP32-C5ESP32-C6ESP32-C61ESP32-H2ESP32-H21ESP32-H4ESP32-P4ESP32-S2ESP32-S3ESP32-S31

POSIX Message Queue Example

A simple example using a POSIX message queue. Two tasks are reading from and writing to a POSIX message queue.

How to use example

Hardware Required

This example should be able to run on any supported Espressif SoC development board.

Build and Flash

Enter idf.py -p PORT flash monitor to build, flash and monitor the project.

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

Example Output

If you see the following infinite console output, your example should be running correctly:

sending: 0
received: 0
sending: 1
received: 1
sending: 2
received: 2
sending: 3
received: 3
...