feat(ocp): create and book in plus dyco controller implemented
This commit is contained in:
@@ -9,6 +9,9 @@ import updateprinters from "./routes/printers/updatePrinters.js";
|
||||
import { updatePrinters } from "./controller/printers/updatePrinters.js";
|
||||
import getLots from "./routes/lots/getLots.js";
|
||||
import getLabels from "./routes/labeling/getLabels.js";
|
||||
import { dycoConnect } from "./controller/specialProcesses/dyco/plcConnection.js";
|
||||
import dycoCon from "./routes/specialProcesses/dyco/connection.js";
|
||||
import dycoClose from "./routes/specialProcesses/dyco/closeConnection.js";
|
||||
|
||||
const app = new OpenAPIHono();
|
||||
|
||||
@@ -21,6 +24,9 @@ const routes = [
|
||||
getLots,
|
||||
// labeling
|
||||
getLabels,
|
||||
//dyco
|
||||
dycoCon,
|
||||
dycoClose,
|
||||
] as const;
|
||||
const setting = await db.select().from(settings);
|
||||
|
||||
@@ -40,4 +46,9 @@ setTimeout(() => {
|
||||
updatePrinters();
|
||||
}, 3 * 1000);
|
||||
|
||||
// do the intnal connection to the dyco
|
||||
setTimeout(() => {
|
||||
dycoConnect();
|
||||
}, 3 * 1000);
|
||||
|
||||
export default app;
|
||||
|
||||
Reference in New Issue
Block a user