We are capturing image using OV5640 camera and sending image to Mobile application over Wi-Fi. Arduino Wi-Fi library is used for sending data over Wi-Fi.
client.write() function is used for sending data over wi-fi. Since client.write() function is blocking call, we are unable to meet our requirement of sending exact captured image. Camera driver is capturing image correctly and stored in DMA buffers using Camera task running in background. Sometimes client.write() function taking more time to send the data and at that moment particular image is skipped.
So, could anyone help to change client.write() function to non-blocking?