How to share information among nodes?


#1

Hi all,
My goal is to build a WSN where each node known the actual status of the other nodes and, on the basis of this, take some action.
How can I share the information among different nodes (probably <10)?
Can I use a sort of complex variable (such as a C struct containing different fields) and upload this data on Cayenne cloud?
Eg.
node1.status = 1;
node1.priority = 0;
node1.power = 255;
node1.activityTime = 8231;

Thank you in advance!