Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3556

General • Re: Need advice on sending image data from a Pi5 to several Picos

$
0
0
For transmitting the data, I thought of creating an access point on the Pi5, and have all Picos connect to it. Then use UDP to send the data to each Pico. I hope I can also do this easily in Python.
Should be easy enough. This is what I have used ...

Code:

UDP_TARGET = "192.168.0.199"UDP_PORT   = 1234import socketskt = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)while True:    tx_data = "???"    skt.sendto(tx_data.encode(), (UDP_TARGET, UDP_PORT))
I have no idea how much data can be sent using 'sendto', whether it splits up larger packets or you would have to.

Statistics: Posted by hippy — Sat Jul 20, 2024 11:44 am



Viewing all articles
Browse latest Browse all 3556

Trending Articles