That's odd - getting that many framing errors points to something being wrong though.
Your parity:E, isn't going to do what you want though. I'm pretty surprised that doesn't error. I think what you actually want is parity:'e'
With that, you might find you get more sensible framing errors.
Also, I'm not sure you want Serial.read(25) - you'd be better off just doing Serial.read() - because otherwise if something changes and actually 26 characters get sent between framing errors, you're going to end up buffering a whole load of data.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That's odd - getting that many framing errors points to something being wrong though.
Your
parity:E,
isn't going to do what you want though. I'm pretty surprised that doesn't error. I think what you actually want isparity:'e'
With that, you might find you get more sensible framing errors.
Also, I'm not sure you want
Serial.read(25)
- you'd be better off just doingSerial.read()
- because otherwise if something changes and actually 26 characters get sent between framing errors, you're going to end up buffering a whole load of data.