I’m setting up a network of rpi’s for multiroom audio purposes. I want all the rpis to be connected to each other by using tcp sockets (I need to be sure that messages are sent and received) so that they may interact easely.
These communications will not be used to transfer audio content as I use snapcast for this (and it perfectly suits my needs).
My problem concerns the initiating of rpis network. I want all the rpis connected to the same wifi network and running the same python program to first, discover themselves and then, connect to each other without hardcoding names/adresses of other rpis in each device.
For the moment, I’ve coded a small library which combines udp for advertising/discovering and TCP for safe messaging, but it does not work perfectly (I face random disconnection after a few days of use and I’m not an expert in udp/tcp networking).
Instead of using my in-house library, I wonder wether python libraries doing the same job (or close) exist and any help/ideas would be appreciated.
put on hold as off-topic by goldilocks♦ 14 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- “This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center.” – goldilocks