Hi All,
I am building a small network of 5 nodes + 1 central node. Each node has a temp+humidity sensor and an RGB Led on it.
I'd like to make these node a bit responsive in this way:
1) map the temp/humidity range with different led color (easy) 2) make a routine that every 1 minute check for which node has the highest temperature value. Then once the "winning" node is identified turn the LED on this node to a specific color while change all other LEDs on the others nodes to another color.
So what is the best to do this? Should I compare all data sent to the central node every minute and then send back a message from the receiver to the target nodes? Or is it better that each nodes listen to all others and every minute check if its value is smaller/bigger then its neighbours?
At moment I am not concerned with power consuption because I am planning to make a small demo and this prototype network won't run for long time (a couple of hours).
How would you structure the code for this problem?
