Commit cddda129 authored by wanghao's avatar wanghao

1 测试 501 502 503 端口号

parent 439a952c
......@@ -18,6 +18,7 @@ import com.zehong.system.service.IRobotArmCommandService;
import com.zehong.system.service.ITStoreyInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
......@@ -49,6 +50,9 @@ public class TStoreyInfoServiceImpl implements ITStoreyInfoService
@Resource
private DeviceStatusReaderAndTimeSetter deviceStatusReaderAndTimeSetter;
@Autowired
private ModbusResultHandler modbusResultHandler;
private final ExecutorService executorService = Executors.newFixedThreadPool(10);
/**
......@@ -338,7 +342,6 @@ public class TStoreyInfoServiceImpl implements ITStoreyInfoService
} else {
registerOffset = Arrays.asList(55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72);
}
ModbusResultHandler modbusResultHandler = new ModbusResultHandler();
deviceStatusReaderAndTimeSetter.startMultiDeviceMonitoring(split[0], Integer.parseInt(split[1]),registerOffset, modbusResultHandler, ModbusResultHandler.createDefaultStopCondition());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment