https://github.com/borud/esp32-queue
example of how you use queues in ESP-IDF
https://github.com/borud/esp32-queue
esp32 espidf freertos freertos-queue freertos-task minimal-example
Last synced: 3 months ago
JSON representation
example of how you use queues in ESP-IDF
- Host: GitHub
- URL: https://github.com/borud/esp32-queue
- Owner: borud
- Created: 2023-09-06T19:38:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T19:55:18.000Z (almost 2 years ago)
- Last Synced: 2023-09-06T22:35:49.442Z (almost 2 years ago)
- Topics: esp32, espidf, freertos, freertos-queue, freertos-task, minimal-example
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP-IDF Queue example
This example shows how you use a queues in ESP-IDF. In this example we create a single queue through which we pass a `message_t` struct. We also create a `consumer_task` and a `producer_task` to demonstrate how you can use tasks.
## Prerequisites
This project uses [Platformio](https://platformio.org/install), so make sure you have it installed.
## Building and running
To build this project just issue the command:
```shell
pio run
```In order to build the project, upload it to the ESP32 and start the serial monitor, you can use the command:
```shell
pio run -t upload -t monitor
```*If the platformio tool cannot find the correct serial device you may have to modify the
`platformio.ini` file* or provide a serial device on the command line with `--upload-port` and `--upload-port`*.