This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { SerialPort } = require("serialport"); | |
| const { ReadlineParser } = require("@serialport/parser-readline"); | |
| const { Server } = require("socket.io"); | |
| const http = require("http"); | |
| const SERIAL_PATH = "/dev/serial/by-id/usb-Arduino_LLC_Arduino_Leonardo-if00"; | |
| const SERIAL_BAUD = 115200; | |
| const SOCKET_PORT = 3001; | |
| const httpServer = http.createServer(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { SerialPort } = require("serialport"); | |
| const { ReadlineParser } = require("@serialport/parser-readline"); | |
| const { Server } = require("socket.io"); | |
| const http = require("http"); | |
| const SERIAL_PATH = "/dev/serial/by-id/usb-Arduino_LLC_Arduino_Leonardo-if00"; | |
| const SERIAL_BAUD = 115200; | |
| const SOCKET_PORT = 3001; | |
| const httpServer = http.createServer(); |