Skip to content

Unable to write messages #1

@genaro-picazo

Description

@genaro-picazo

Whenever I connect to a COM port and try to send data, I always get back the following error:

First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.

Doing a little bit of debugging, it seems like the api webserver is receiving an empty object as the req.body, which is assigned to the buffer that we are trying to write to the serialport. The error makes sense, and I believe the issue is in remote-serial-port-client\lib\RemoteSerialPort.js, however, before spending time trying to fix it, I wanted to post this in case it is a known and possibly fixed issue.

Btw, this is via the provided web interface in the remote-serial-port-server project.

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