Temporaly reverted old test variant

This commit is contained in:
2026-06-11 07:41:59 +02:00
parent fef960d4ce
commit 246a08b941
18 changed files with 1950 additions and 788 deletions

16
front_new/js/serialapi.js Normal file
View File

@@ -0,0 +1,16 @@
const { SerialPort } = require("serialport");
async function serialList() {
const ports = await SerialPort.list();
return ports; // path, manufacturer, serialNumber, pnpId, locationId, friendlyName, vendorId, productId
}
async function serialOpen(port) {
const serial = new SerialPort({
path: port,
baudRate: 115200,
});
return serial;
}
module.exports = { serialList, serialOpen };