I am planning to do a POC with serialport communication using Node.js. I googled and found the "serialport" module for Node.js. I have a C# code which writes the data to the serial port in byte datatype. I would like to try the same using Node.js. The C# code has the following values in the byte[] array:
5, 170, 85, 250, 0, 86, 0, 3, 158, 0
Could anyone please tell me how to achieve this using Node.js's serialport module?