Skip to content

Trying to send binary data #310

Closed
Closed
@dazhbog

Description

@dazhbog

I am currently trying to send binary data. I already checked #29 #30 and I also tried sendjsonraw and/or timedraw but I get errors like

Could not parse send command: sendjsonraw

Or in some cases

We could not find the serial port

What is the most recent way to send binary data?

Code

this.socket.emit('command', "open /dev/serialport 38400 timedraw");

after port is opened

var temp = {P:"/dev/serialport", Data:[{D:"BQf/8AEAalA="}]};
this.socket.emit('command', "sendjsonraw "+JSON.stringify(temp));  

Thanks

**EDIT
I can see at 1ec989f that the sendjsonraw functions were removed. 😢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions