#
mrzhssss
2022-12-06 23f612a8470a7e59a97c5777439c56590ea882bb
src/main/java/com/zy/core/thread/LedThread.java
@@ -52,8 +52,8 @@
    public LedThread(Slave slave) {
        this.slave = slave;
        try {
            Bx5GEnv.initial(3000);
            screen = new Bx5GScreenClient("my");
//            Bx5GEnv.initial(3000);
//            screen = new Bx5GScreenClient("my");
        } catch (Exception e) {
            e.printStackTrace();
            log.info("led连接构造器错误 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
@@ -63,7 +63,7 @@
    @Override
    @SuppressWarnings({"InfiniteLoopStatement", "unchecked"})
    public void run() {
        connect();
//        connect();
        close();
        while (true) {
            try {
@@ -80,7 +80,7 @@
                            break;
                        // 写数据 液晶
                        case 3:
                            write7((List<LedCommand>)task.getData());
                            error((String)task.getData());
                            break;
                        // 复位 液晶
                        case 4:
@@ -258,10 +258,8 @@
    @Override
    public void close() {
        screen.disconnect();
    }
    public static void main(String[] args) throws Exception {
        String strQty = "1234";
@@ -318,37 +316,6 @@
        // 继开与控制器之间的链接
//        screen.disconnect();
    }
    public static void main1(String[] args) throws Exception {
        Bx5GEnv.initial(3000);