#Permission to write to serial port?
8 messages · Page 1 of 1 (latest)
do you get any error message? How are you going to access the serial port? JS / Rust?
Sorry for the delayed response (saw Dune). But yes I see this from my client:
{
"error_type": "Read",
"message": "Operation timed out"
}
So I am seeing a timeout from the client, which calls the serial write command via a Tauri command:
const res = await invoke('write', {
content: command.cmd + '\n'
})
.catch((err: SerialError) => {
if (typeof err === 'string') {
err = JSON.parse(err);
}
error(err.message);
});
BUT now that I look more closely, It seems like this may be a firmware issue not supporting the new Payload values
What Rust crate are you using?
The capabilities only impact the frontend and doesn't restrict standard JS APIs. Since you applied the macOS tag to this post, I'm going to assume you're not using the JS Web Serial API.
No worries! Going to watch dune on Sunday :)
Thanks for the help!