Skip to content

Trying to send binary data #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dazhbog opened this issue Feb 24, 2019 · 1 comment
Closed

Trying to send binary data #310

dazhbog opened this issue Feb 24, 2019 · 1 comment

Comments

@dazhbog
Copy link

dazhbog commented Feb 24, 2019

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. 😢

@dazhbog
Copy link
Author

dazhbog commented Mar 5, 2019

Closing issue. Ended up writing a little Node.js bridge to do what I wanted.
Project is here browser-ws-serial

@dazhbog dazhbog closed this as completed Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant