i don't know if it's the right community to ask (i think so, by the way) so excuse me in advance if this is off topic. I was thinking about a project in android that involves knowing how many devices are in the surroundings. Is there a way to "discover" it? My idea is something like this:
- my device sends some sort of broadcast ping via ARP (or some Data Link protocol)
- Every device answers to that ping
- My device counts how many response pings are and this is how many surrounding devices are.
I'm saying ARP or some Data Link Protocol because it should be "beyond wifi connection", knowing not "how many devices are connected to my network" but "how many devices surround me"
Thank you in advance!