I use the code below to send a string as a payload over a wireless radio on my arduino and it works ok.
Now, I have a jpeg image of 5kb saved on an SD on my arduino. I would also like to send this image as a payload. However the payload is limited to 200 bytes.
I was thinking of breaking up the jpeg into 200 byte segments and transmitting those.
These were the steps I was planning to follow.
Opening the jpeg on the SD card as a binary file.
Selecting the first 200 bytes.
Then using the code below to send that the data. Note the code above is an example of how to send a string over the radio.
Then I could try expand it to get the next 200 bytes.
I was hoping somebody may be able to help me code the procedure.