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

output was unintelligible with netcat #1

Open
Simplefred opened this issue Jul 2, 2023 · 2 comments
Open

output was unintelligible with netcat #1

Simplefred opened this issue Jul 2, 2023 · 2 comments

Comments

@Simplefred
Copy link

There was an issue with sending utf-8 to the socket. The format of the format of the packet from the USB HID was still in the usage id. Adding the dictionary from the following git project:
https://gist.github.com/not-inept/3219ca6e56d62594c1be9e6f0c6067af

and type casting the string to bytes also helped.

Also set the bind address to 0.0.0.0.

@Simplefred Simplefred changed the title output was intelligible with netcat output was unintelligible with netcat Jul 2, 2023
@Simplefred
Copy link
Author

I fixed it. would you like me to share it?

@romor
Copy link
Member

romor commented Jul 3, 2023

Thanks for contributing. Sure, please paste/link your changes or do a pull request.

However, I am not sure whether I already understand this topic. I use this library to transfer binary data (packets from an RF receiver), where its binary content shall not be translated or stringified.

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

2 participants