i have built some networks using RaspberryPi and the communication was done in Phyton and shell scrpt. Some of this applications are has created a testing environment for more than 60 devices, in this way we can use one RPi for each device or one RPi for 10 devices, it depends on CPU usage.