InitLedTask.java 548 B

1234567891011121314151617181920
  1. package com.gzlh.device.plc.job;
  2. import cn.hutool.core.thread.ThreadUtil;
  3. import cn.hutool.core.util.StrUtil;
  4. import com.gzlh.bus.SysConfig;
  5. import com.gzlh.config.SystemObject;
  6. import com.gzlh.config.task.Task;
  7. import com.gzlh.device.led.utils.LedOptions;
  8. public class InitLedTask extends Task {
  9. public InitLedTask(String id, long delayInMilliseconds) {
  10. super(id, delayInMilliseconds);
  11. }
  12. @Override
  13. public void run() {
  14. SystemObject.ledFactory.handler(SysConfig.serialSetting.getLed().getBrand()).init();
  15. }
  16. }