You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Just so you know (it shouldn't make any difference in this case though), you need to put quotes around the values of parity and flow as they're not built-in constants - like this:

    Serial2.setup(9600, {rx:A3,tx:A2,bytesize:8,parity:'none',stĀ­opbits:1,flow:'none'});
    

    In this case it's fine because none would evaluate to undefined, and the default it none as well - but If you'd tried specifying other parity types then it wouldn't have worked.

    If you do have a storage oscilloscope handy then I'd really recommend connecting it to the serial port data pin. By triggering when you scan a barcode you should easily be able to figure out exactly what the baud rate is.

About

Avatar for Gordon @Gordon started