Skip to content

Use tskNO_AFFINITY instead of NULL in xTaskCreatePinnedToCore#411

Merged
Miq1 merged 2 commits into
eModbus:masterfrom
guido4096:use-tskNO_AFFINITY-instead-of-null
May 18, 2025
Merged

Use tskNO_AFFINITY instead of NULL in xTaskCreatePinnedToCore#411
Miq1 merged 2 commits into
eModbus:masterfrom
guido4096:use-tskNO_AFFINITY-instead-of-null

Conversation

@guido4096

@guido4096 guido4096 commented May 18, 2025

Copy link
Copy Markdown
Contributor

According espressif documentation, if you don't want to pin a task to a core, you should use tskNO_AFFINITY .

Looking at the logic in ModbusClientTCP::begin , I expect this is what was intended. Anyways, with tskNO_AFFINITY I get better performance fro my usecase where my esp32 acts as a master to read from a TCP device and after conversion serves this back out over RTU .

@Miq1 Miq1 merged commit d60ec40 into eModbus:master May 18, 2025
14 checks passed
@Miq1

Miq1 commented May 18, 2025

Copy link
Copy Markdown
Contributor

Thanks a lot - missed that up to now.

@guido4096 guido4096 deleted the use-tskNO_AFFINITY-instead-of-null branch May 18, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants