Open
Description
SerialPort Version
12
Node Version
16.2.2
Electron Version
28.2.2
Platform
23.3.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:32:11 PDT 2023; root:xnu-10002.41.9~7/RELEASE_ARM64_T6030 arm64
Architecture
No response
Hardware or chipset of serialport
M3
What steps will reproduce the bug?
Hello on Mac I am getting the error "Unable To Communicate With Scales - Dini Argeo, Illegal invocation"
On windows my code works fine. I checked permissions adn ensuring using correct COM ports and all fine. In serial port tool its reading the comsOK.
Anyone else experienced this?? - Appreciate any help thank you
this.sp = new SerialPort({
path: this.terminalSettings.attributes.balance_settings.balance1Port,
baudRate: this.terminalSettings.attributes.balance_settings.balance1Baud,
autoOpen: false,
});
this.sp.on("error", (err) => {
this.confirmMessage = `Unable To Communicate With Scales - ${this.balance1Type}, ${err.message}`;
this.showModal("scale_popup");
});
this.sp.open((err) => {
if (err) {
// Retry opening the port after a delay
setTimeout(() => this.sp.open(), 1000);
} else {
this.parser = this.sp.pipe(new DelimiterParser({ delimiter: "\n" }));
this.getScale(); // Call getScale in created hook
}
});
},
What happens?
Illegal Invocationg Error
What should have happened?
No Error, work as usual like it does in Windows
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels