Skip to content

Commit

Permalink
Serial server parity option (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
WellnessTechDev authored Feb 2, 2025
1 parent 107fc43 commit 70e12d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions servers/serverserial.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const ServerSerialPipeHandler = require("./serverserial_pipe_handler");

const PORT = "/dev/tty";
const BAUDRATE = 9600;
const PARITY = "none";

const UNIT_ID = 255; // listen to all adresses

Expand Down Expand Up @@ -222,6 +223,7 @@ class ServerSerial extends EventEmitter {
const optionsWithBinding = {
path: options.path || options.port || PORT,
baudRate: options.baudRate || options.baudrate || BAUDRATE,
parity: options.parity || PARITY,
debug: options.debug || false,
unitID: options.unitID || 255
};
Expand Down

0 comments on commit 70e12d2

Please sign in to comment.