Port is not open #2594
dwirifki10
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
SerialPort.close() return error port is not open.
let port = "COM10"
let baudRate = "112500"
let res = new SerialPort({path: port, baudRate: parseInt(rate)});
if(param == 0) {
await res.close((err) => {console.log(err)});
}
Beta Was this translation helpful? Give feedback.
All reactions