#Permission to write to serial port?

8 messages · Page 1 of 1 (latest)

rough mural
midnight drum
#

do you get any error message? How are you going to access the serial port? JS / Rust?

rough mural
#

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

obtuse verge
#

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.

midnight drum
rough mural
#

Thanks for the help!