network1----floor controller 1(1 Pi)---------remaining 10 Pi general controllers
network2----floor controller2 (1Pi)---------remaining 10 Pi general controllers.
network3----floor controller3 (1 Pi)---------remaining 10 Pi general controllers.
I have 3 networks and each network has 11 Pi controllers(1 floor and 10 general) . I want each general Pi controller to broadcast "I am Pi general controller with IP address xxxxxxx"
Each Pi general Controller would have a map or text file which shows the rest of 10 Pi controllers with their IP address. I also want each floor controller to broadcast "I am Pi floor controller with IP address xxxxx". and Each Pi floor controller would have a map of the remaining 2 floor controllers.
Qestions
1)Any Python code for UDP broadcast its IP address. I have C UDP broadcast code but I may need Python.
2)If there's Python broadcast code, how do I make a text file containing the rest of the 9 Pi's Ip address in Python?