I need to write a python script to send an image via UART Rx/Tx from one Raspberry Pi 3B to another one ..
Could you please help me ?
davidcoton wrote: ↑Wed Mar 25, 2020 11:58 amOK, so post EXACTLY the code you are using (cut and paste, not retype).
Code: Select all
def sendFile():
with open("image.jpg", "rb") as fDst:
buffer= fSrc.read()
SendLong(len(buffer))
for byte in buffer:
SendByte(byte)I changed the name in this line to the name of my file .. so I would say yes I have a .jpg file ready to be sent ..davidcoton wrote: ↑Tue Mar 24, 2020 2:35 pmDo you have a file called cameraimage.jpg ready to send?