mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-10 10:03:24 +00:00
FreeRTOS
This commit is contained in:
@@ -114,9 +114,9 @@ void task2(void *pvParameters) {
|
|||||||
.num2 = 0,
|
.num2 = 0,
|
||||||
.num3 = 0,
|
.num3 = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
xQueueSend(xQueue1, &data, 0);
|
xQueueSend(xQueue1, &data, 0);
|
||||||
printf("Task 1 sent: id=%d, message=%s\n", data.id, data.message);
|
printf("Task 1 sent data");
|
||||||
|
x++;
|
||||||
|
|
||||||
printf("This is Task #2\n\n");
|
printf("This is Task #2\n\n");
|
||||||
vTaskDelay((2000)); // Delay for 2 seconds
|
vTaskDelay((2000)); // Delay for 2 seconds
|
||||||
|
Reference in New Issue
Block a user