We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SerialPort Version:6.1.1
NodeJS Version:7.4.0
Operating System and Hardware Platform:window
Have you checked the right version of the api docs?: yes
Are you having trouble installing and you checked the Installation Special Cases docs?
Are you using Electron and have you checked the Electron Docs?:
After I execute a write method, the returned data of the listener divides the data into two returns, but sometimes it can be returned all at once.
this.serialport = new Serialport(_this.portVal,_this.config)
this.serialport.open((err) => { if(!err){ this.status = false this.serialport.on('data',(res) => { console.log(res) }) }else{ } })
this.serialport.write([0xfa,0xaf,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x88],'hex')
The text was updated successfully, but these errors were encountered:
This is normal behavior. You'll want to look into parsers for how to handle it. https://node-serialport.github.io/node-serialport/global.html#Parsers
You can find more info about the data event here. https://node-serialport.github.io/node-serialport/global.html#event:data
Sorry, something went wrong.
No branches or pull requests
SerialPort Version:6.1.1
NodeJS Version:7.4.0
Operating System and Hardware Platform:window
Have you checked the right version of the api docs?: yes
Are you having trouble installing and you checked the Installation Special Cases docs?
Are you using Electron and have you checked the Electron Docs?:
Summary of Problem
After I execute a write method, the returned data of the listener divides the data into two returns, but sometimes it can be returned all at once.
Steps and Code to Reproduce the Issue
this.serialport = new Serialport(_this.portVal,_this.config)
this.serialport.write([0xfa,0xaf,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x88],'hex')
The text was updated successfully, but these errors were encountered: