I'm trying to use socket.send() to send real time images from a camera as fast as possible from a single board computer. I am going over a wireless connection over a mile with almost 1W output power on 802.11.
For many reasons, I have seen the need to find when my file has finished sending, but the socket.send only blocks until it has pushed the file to the buffer. Is there any way to check if the buffer is empty and the file sent?
Beginsend and beginsend file do not send the files like I would like (they send it in multiple packets that will require a protocol written to receive), however they do wait until they are all sent. Thank you!