I want to connect a sensor by wifi to a pi zero w. I'd like all incoming sensor packets (which is all the traffic there will be) to be sent to two outbound IP addresses. Can anyone point me to a howto?
Thanks!
Dave
Code: Select all
from socket import socket
sock = socket()
sock.connect(('1.2.3.4', 1234))
sock.send('Hello world!\n')
sock.close()