Client-Server Communication with Two Raspberry Pies and Python

preview_player
Показать описание
This video shows you how to send messages from one RPi and receive them on another RPi. It uses two Python scripts, one running on the client (sender) and one running on the server (receiver). It also shows you how to send GPIO information from client to server.

NOTE: it is also possible for the server to send messages back to the client. This simple example does not include that feature.
Рекомендации по теме
Комментарии
Автор

does this work if both Pi’s are offline? I need to send pings over an Ethernet cable to each other with no network

joshreed
Автор

192.168.x.x with network mask 255.255.255.0 (24 bit) is not needed, 255.255.0.0 also works (16 bit), router/hub does not care if your range is different from other devices,
it just isolates the rpi from internet probably.

jyvben