Need optimisation in Serial message

Hi,

I have a simple problem, i need to send 512 values via Serial TX, all values are between 0 and 255.

How can i encode value in one octet send it via TX recieve it via RX and decode it ?

If the values are all between 0 and 255 then they are each one byte which is the same unit that Serial works with.

What do you mean by "one octet" ?

you simple don't need encode them.

  • do you want to send them as a string of bytes?
  • how do you recognize the first byte or the end of transmission?

have you considered Serial.write()?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.