Skip to content

Can't work with binary data #9

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

Open
rkyrychuk opened this issue Dec 10, 2021 · 0 comments
Open

Can't work with binary data #9

rkyrychuk opened this issue Dec 10, 2021 · 0 comments

Comments

@rkyrychuk
Copy link

Binary data is corrupted when converting to string on uart rx characteristic, and there are no option to allow binary data
https://github.com/sorrir/node-bluetooth/blob/master/src/uart/host-interfaces/uart-rx-characteristic.ts#L30

const message = Buffer.from(value).toString();

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