This repository has been archived on 2023-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
old-monorepo/Dashboard/src/SerialConnection.ts

12 lines
192 B
TypeScript
Raw Normal View History

import SerialPort from "serialport";
const newPort = () => {
const port = new SerialPort("COM5", {
baudRate: 9600,
autoOpen: false,
});
return port;
};
export default newPort;