Say we have a group of 10 people, within 20m of one another. Each person has a mobile phone (iPhone / android / Windows phone).
And one person taps the screen to send a message.
And this is instantly registered by the others. Synchronisation is the key. It has to hit all target devices within a few milliseconds.
How might I go about this?
- web sockets: I can't see this working as there is not guaranteed to be any Wi-Fi network. maybe I set up one phone as an access point, and the others connect to it?
- Bluetooth: maybe?
- Audio: maybe, speed of sound is probably close enough time resolution. But messy.
- Anything else?
I'm working in Unity3D, although since it allows mobile plug-ins I could implement separately per platform.
An iphone-only solution would still be of interest.
EDIT: Please don't just say 'Use Bluetooth'
EDIT: One way to rephrase the question: is it possible to set up a bunch of mobile phones so that UDP packets can be sent between them? (Ad-Hoc networking?)
EDIT: Links: Transfer NSString between two devices via bluetooth in iOS Transfer data between iOS and Android via Bluetooth?