Node SerialPort Stream Buffer

I'm trying to send data back and forth between my computer and my Arduino Nano Every over the serial connection using the NodeJS package SerialPort (the SerialPort/stream interface).

On the Nano Every, I try using Serial.println("hello"); and I receive it on the NodeJS side. Here is the printout:

<Buffer 80 9e 66 06 9e e0 9e fe 9e e6 80 98 80> ��f�����怘�

I print out buffer, and then buffer.toString(). Can anyone tell me what encoding this is, or how to set it correctly?

Here is the interface I am using.

that seems like garbage

did you set the same baud rate on both sides?

can you share the NodeJS code?

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