Skip to content

when use send method occur error #32

@modifyFun

Description

@modifyFun

I use like this
`export const sendCommand = async (port, baudRate, command) => {
const serialPort = await serialPortApi.open(port, { baudRate });

await serialPort.send(command);

serialPort.close();
};
sendCommand('/dev/ttyS2', 9600, '57AA08CC33C33C');`

an ”exception in native call from js error“ was occur,the command is send and work , but app occur error

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions