What is the simplest way to synchronize GPIO state (states are: 1 or 0) between two Raspberry devices connected via Internet ?
What I need is immediately change GPIO state on Raspberry 1 if Raspberry 2 GPIO was changed before.
I'm thinking about bash script which read state on Raspberry 1 and send the same state to Raspberry 2 via ssh.
Something like:
ssh pi@remote-host.edu 'echo "1" > /sys/class/gpio/gpio4/value'
But I'm not sure about speed of this action.
immediately
you are limited by the inherent "lag" that comes with the internet - so, what is immediate "enough"? 1s? 100ms? 10ms? – Jaromanda X Dec 13 '18 at 11:02