Synchronize multiple Arduino Yun over WiFi


I have a wireless network with 1 AP and 3 clients.

The AP counts every 10 seconds for what we can call Superframe. I want that the 3 clients are synchronized in such a way that they will not transmit data (a ping message for instance) simultaneously. I want to create a rule, like "at second x client x transmits".

How can I do that?

How many clocks are available for the Arduino Yun? What's the reference library to work with these clocks?

Server software use either:

  • Multithreading
  • Non-blocking I/O

to support concurrent requests from each client.

Multithreading, each thread for each client.

Node.js provides an event-driven architecture and a non-blocking I/O API

Thank you.

I will check if it is suitable for my purpose