What's the use of WearOS "node" parameter in wearAble APIs?

67 views Asked by At

In the code below :

Wearable.getMessageClient(applicationContext).sendMessage(node,label,data)

What's the point of node parameter ? I am able to send & receive data , no matter what value i use for the node.

1

There are 1 answers

1
TofferJ On

A node is simply a connected device:

Multiple wearable devices can be connected to a user’s handheld device. Each connected device in the network is considered a node.

For more details how to detect available nodes, and understand their capabilities, see the official documentation.