import { createPlcMonitor } from "./plcController.js";

export const zechettiConnect = () => {
    const config: any = {
        controllers: [
            {
                id: "Zecchetti_1",
                ip: "192.168.193.97",
                slot: 0,
                rpi: 250,
                printerId: 22, // grabbed from 2.0
                tags: ["N7[0]"],
            },
            {
                id: "Zecchetti_2",
                ip: "192.168.193.111",
                slot: 0,
                rpi: 100,
                printerId: 23,
                tags: ["N8[0]"],
            },
        ],
    };

    const monitor = createPlcMonitor(config);

    // Start
    monitor.start();
};
