-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi,
I have the following code:
this.serialPort = new SerialPort({
path: this.comPort,
baudRate: 9600,
})
try {
await this.serialPort!.open()
}
catch (error) {
throw new Error(`Failed to open port: ${error}`)
}
try {
await this.serialPort!.startListening()
await this.serialPort!.listen((data) => {
console.log(data)
})
}
catch (error) {
throw new Error(`Failed to start listening: ${error}`)
}
// More code here
This is working fine on windows and macos; however on an Android device, I'm receiving the following error:
Error: Failed to start listening: failed to deserialize response: invalid type: null, expected struct MobileResponse
This is with the latest 2.21.1 version for both the rust package and the JS package.
I've been trying to debug this, but can't find where it comes from to be quite honest.
Do you have any pointers?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels