gx
chenyc
2024-11-15 abf0b75beed7c2ffc010a1923dba8f7b75914a6c
src/samples/deviceApi/mbp7000qy.ts
@@ -28,7 +28,7 @@
        console.log('端口异常端口链接断开')
        console.log(err)
    })
    const parser = serialport.pipe(new InterByteTimeoutParser({maxBufferSize:20}))
    const parser = serialport.pipe(new InterByteTimeoutParser({interval: 500 ,maxBufferSize:20}))
    // parser.on('ready', () => console.log('the ready byte sequence has been received'))
    
    parser.on('data',(value: string | any[]) =>{