Page 1 of 1

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

Posted: Mon Jul 29, 2024 8:13 pm
by nicoDHX
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.

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

Posted: Mon Aug 05, 2024 12:32 pm
by EricVs
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'.