Event task priority ???

Baldhead
Posts: 467
Joined: Sun Mar 31, 2019 5:16 am

Event task priority ???

Postby Baldhead » Sun Aug 06, 2023 9:29 pm

Hi,

I think that the events in ESP32-S3 run in a separated task.

I register a event like so:

Code: Select all

ESP_ERROR_CHECK(esp_event_handler_register(ESP_HTTPS_OTA_EVENT, ESP_EVENT_ANY_ID, &ota_event_handler, NULL));
What is the event task priority ???

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Event task priority ???

Postby MicroController » Sun Aug 06, 2023 9:57 pm

I believe it's (ESP_TASK_PRIO_MAX - 5).

Baldhead
Posts: 467
Joined: Sun Mar 31, 2019 5:16 am

Re: Event task priority ???

Postby Baldhead » Sun Aug 06, 2023 10:56 pm

Is there any way to get this value by macro or function ?

Baldhead
Posts: 467
Joined: Sun Mar 31, 2019 5:16 am

Re: Event task priority ???

Postby Baldhead » Mon Aug 07, 2023 12:19 am

Sorry @MicroController,

Only add:
#include "esp_task.h"

ESP_TASKD_EVENT_PRIO

Thank`s.

Who is online

Users browsing this forum: No registered users and 85 guests