the carriage return be interpreted as their ASCII equivalent, hence 13 for the carriage return if i'm correct.
So how do you make sure that the STX and ETX are not incidentally in the data you send?
void HardwareSerial::writebuf(byte *buffer, int bufsize);void HardwareSerial::readbuf(byte *buffer, int *bufsize);// sample usage:byte buf;Serial.writebuf(buf, sizeof(buf));int size = sizeof(buf);Serial.readbuf(buf, &size);
First of all, it's good to see both Big and Grumpy in the same thread. I've been thinking about how the Arduino HardwareSerial class is pretty good for formatted text, but it would be nice to extend it for binary data. ... Doesn't this seem like it would useful? I would be happy to contribute to the implementation, along the lines of the discussion above.Mikal