Skip to content
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

Is it possible to write bytes directly to the serial port ? #76

Closed
shyam-gala opened this issue Dec 16, 2016 · 1 comment
Closed

Is it possible to write bytes directly to the serial port ? #76

shyam-gala opened this issue Dec 16, 2016 · 1 comment

Comments

@shyam-gala
Copy link

Hi,

As per the title I am trying to find out if there is a way to write bytes directly onto the serial port. I am working with a device that exposes a byte based protocol. I tried to convert the bytes to hex and use the writeHex option however that doesnt seem to work and also seems like a round about way and was curious if there was a branch or clone which had the ability to directly write bytes onto a arduino board using the serial port.

Thanks

@shyam-gala
Copy link
Author

Bytes to hex with writeHex is the right approach. Had some problems in the byte to hex conversion, once past those writeHex writes the bytes correctly.

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