自动化立体仓库 - WCS系统
#
Junjie
2023-11-09 02fcf6d4c840b6b6c279976147ad5dfd8aebb401
src/main/java/com/zy/core/thread/BarcodeThread.java
@@ -65,7 +65,7 @@
        connect();
        while (true) {
            try {
                byte[] read = read(8, 200);
                byte[] read = read(50, 200);
                if (null != read) {
                    String s = new String(read);
                    if (!Cools.isEmpty(s)) {
@@ -79,10 +79,14 @@
                        }
                        OutputQueue.BARCODE.offer(jsonObject);
                    }
                }else{
                    barcode = "";
                }
                Thread.sleep(50);
            } catch (SocketTimeoutException ignore) {
//                barcode="";
            } catch (Exception e) {
                barcode="";
//                e.printStackTrace();
            }
        }