Wifi-mesh. Can I send parallel message to different nodes?

nicoDHX
Posts: 2
Joined: Mon Jul 29, 2024 4:25 pm

Wifi-mesh. Can I send parallel message to different nodes?

Postby nicoDHX » Mon Jul 29, 2024 8:13 pm

I want to have several threads, each in charge of esp_mesh_send() to a different node. Will there be a problem if there are multiple instances trying to send messages? I want to do this, because if a node disconnected, i want to keep sending data to other nodes, without waiting for timeout.

EricVs
Posts: 2
Joined: Thu Oct 13, 2022 4:30 pm

Re: Wifi-mesh. Can I send parallel message to different nodes?

Postby EricVs » Mon Aug 05, 2024 12:32 pm

According to the API documentation esp_mesh_send() is not reentrant. You can use it in multiple tasks, with e.g. mutex, but then it will still be sequential. So, I would say the answer is 'no'.

Who is online

Users browsing this forum: No registered users and 164 guests