Hi everyone,
I am running into difficulty transfering bytes of binary data to a ftp server. I convert a 3 digit string (range 0 - 255) to a u8. This is then added to a buffer (either by using u8 pointers or through the wm_sprintf(*buffer, “%c”, byte) function.
I then echo the byte to the serial port to ensure that the conversion has been performed correctly which it appears to be. after several hundred conversion and appends to the buffer the buffer is sent to the ftp server as a file. When I use a hex viewer to look at this file the byte values only range from 0 - 127 instead of 0 - 255. ie an orginal string of “128” will be transferred as 0 and a string of 255 will be transfered as 127. Does anyone have any idea where or what is causing the error?
Cheers
Mark