chenyc
2024-12-10 b5646e3f08bf45a27a3db92f5e27568a5448cb03
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[]) =>{