PainlessMesh - sendSingle question

Hello

I have a short question about the painlessMesh library.
It has 2 functions that allow to send messages to nodes:

  • sendSingle

  • sendBroadcast

Question:
In the case of "sendSingle" does the destination node needs to be directly accessible (->children) by the sender node, or can it be at the far end of the mesh?

https://painlessmesh.gitlab.io/painlessMesh/classpainlessmesh_1_1Mesh.html#a734765e22d6d1c5fb73dbd689e8db2e0

Thank you

Response:

SINGLE messages

For single messages, a destination and origin node is specified. First the connection to use is looked up. Either the direct connection, or the connection which has a sub-connection to the destination node. The message is send to that node. When that node is not the destination node, the exact message is relayed to the next connection, which is looked up in the same way. This repeats until the message arrives at the destination node.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.