Painlessmesh check is connected and method sendSingle()

Hello,

  1. When i call mesh.update(), i would like to know if the node is connected. I see the api,

isConnected exist; how can i use this function?

  1. what is the goal of sendSingle than use Task taskSendMessage( TASK_SECOND * 1 , TASK_FOREVER, &sendMessage ); ?

Thank you for your help.

Anyone have an idea please?

I don't understand your second question. But, the documentation for isConnected() seems fairly self-explanatory:

image

Except for what looks like a typo. It should probably read:

Returns true if a given node is currently connected to the mesh.

What is it that you don't understand?

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