- Tue Feb 14, 2017 7:47 am
#62555
UDPreply does the same thing automatically by the way, it is used to return a message just to the broadcasting sender.
Reading between the lines...
If you're going to have a 'Master' node, either it needs to be able to broadcast it's own 'Who's There?' command, or else each node needs to broadcast it's address when it comes online.
But either way, the Master needs to store each nodes IP address along with any other corresponding info (perhaps node Names or Roles).
Unless there is an absolute defined number of nodes, the indeterminate and changable node list needs to be save somewhere, probably an array. The contents of an array will be lost at each power up/reboot, so may need to be saved to non-volatile memory, and perhaps even saved to a secondary 'standby' Master.
Note: if these nodes are not an a router subnet you will probably need to set the default gateway of each node to point to the 'master' AP (if that's who they'll be communicating with).