From d772a8c0b226e55dfc28fdfe6e41a2c491317ed8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <xltys1995> Date: 星期二, 01 九月 2020 15:54:46 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/ServerBootstrap.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java index e995d30..57860a6 100644 --- a/src/main/java/com/zy/core/ServerBootstrap.java +++ b/src/main/java/com/zy/core/ServerBootstrap.java @@ -8,6 +8,7 @@ import com.zy.core.properties.SlaveProperties; import com.zy.core.thread.CrnThread; import com.zy.core.thread.DevpThread; +import com.zy.core.thread.LedThread; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; @@ -88,6 +89,14 @@ // new Thread(barcodeThread).start(); // SlaveConnection.put(SlaveType.Barcode, barcode.getId(), barcodeThread); // } + // 鍒濆鍖朙ED绾跨▼ + log.info("鍒濆鍖朙ED绾跨▼..................................................."); + for (Slave led : slaveProperties.getLed()) { + LedThread ledThread = new LedThread(led); + new Thread(ledThread).start(); + SlaveConnection.put(SlaveType.Led, led.getId(), ledThread); + } + } -- Gitblit v1.9.1