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

fix: read full response message before decoding #11

Closed
wants to merge 1 commit into from

Conversation

kunoh
Copy link

@kunoh kunoh commented Jun 30, 2023

Read the full response message before decoding CBOR

@kunoh
Copy link
Author

kunoh commented Jun 30, 2023

What a timing - a couple of hours ago the same fix was merged into main :D Duplicate of #10

Copy link
Contributor

@Frank-Buss Frank-Buss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I fixed it already a week ago, but was only recently reviewed. I like my version better, because it checks for the second 4, 20 marker only after the first line was received, but the rest is basically the same. But I like your new read_until_newline function, and the removal of \r if some server sends this. If you change your PR and integrate your new function and the \r removal into the current version, I'll merge it.

@Frank-Buss
Copy link
Contributor

PS: I'm currently not working on #8 , might start with it in a few weeks (I'll add a comment then there), if you want something challenging and if you have a nRF dev kit.

@Frank-Buss Frank-Buss closed this Nov 10, 2023
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

Successfully merging this pull request may close these issues.

3 participants