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

Can't decode Token of length 6 #299

Open
anuar2k opened this issue Oct 7, 2024 · 1 comment
Open

Can't decode Token of length 6 #299

anuar2k opened this issue Oct 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@anuar2k
Copy link

anuar2k commented Oct 7, 2024

Per CoAP spec, the TKL field is in range of 0 to 8. At the same time, the logic which parses variable-sized integers only supports inputs of 0,1,2,3,4 and 8 bytes. I believe this is the relevant line.

This makes https://juullabs.github.io/koap/ unable to decode messages like 568400004f6273657277, which has TKL of 6. I suppose that TKLs of 5 and 7 aren't supported, too.

@twyatt twyatt added the bug Something isn't working label Oct 7, 2024
@twyatt
Copy link
Member

twyatt commented Oct 23, 2024

Thanks for the report!
It will probably be a long while before we can get to this though.
Pull-requests are welcome though. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants