I am very inexperienced with Python. I have two Raspberry Pi computers and want to use them in a robot design. I want a program that creates a WiFi network and broadcasts variables taken from the GPIO pins on that WiFi network. I want the other one to read those broadcast variables and output them to the GPIO pins. This would basically be a TX/RX program that uses WiFi. Bluetooth would also be an option as both of the PIs in the design are going to be Bluetooth ready.
-
Welcome to Raspberry Pi! Please take the tour and visit the helpcenter to see how things work here.Ghanima– Ghanima ♦2017年09月10日 10:09:33 +00:00Commented Sep 10, 2017 at 10:09
-
Related and possible dupe: raspberrypi.stackexchange.com/q/32816/19949Ghanima– Ghanima ♦2017年09月10日 10:09:55 +00:00Commented Sep 10, 2017 at 10:09
-
Possible duplicate of send gpio commands from rpi python script to another rpiangussidney– angussidney2017年09月12日 08:45:23 +00:00Commented Sep 12, 2017 at 8:45
1 Answer 1
pidpgiod is a utility which launches the pigpio library as a daemon.
Once launched the pigpio library runs in the background accepting commands from the pipe and socket interfaces.
In other words it allows control of the GPIO on multiple networked Pis by running the pigpio daemon on each of them. Utilizing sockets (Layer 4: Transport Layer) that should be rather independent of the underlying network architecture, be that ethernet or Bluetooth.