Okay, so here's the deal. I'm working on a system with three wireless glowing RGB-cubes. I'm using the RSSI functionality within GZLL to find the distance between each cube, and changing the colors with said distance. I'm also working on an alternating host/device system so that every cube knows the distance to the two others at any given time. Because of the limitations within the GZLL protocol being that only the host knows the distance to the (up to) eight other devices, this seems like the appropriate approach. Knowing that I'm probably not the best programmer out there, I'm reaching out to you!
What are your opinions on the algorithm for this alternating host/device system? By that I mean the order of operations, when to check the distance and so on. I'm going for minimum response time, since this is for an interactive installation.
Any meanings and suggestions on the manner will be greatly appreciated!
Hugs and kisses from Norway!