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

Parse unknown options as opaque instead of failing the whole message #182

Open
zalenskivolt opened this issue Apr 11, 2023 · 1 comment
Open

Comments

@zalenskivolt
Copy link

Currently it is not possible to see anything about a message that includes an unsupported option, except that option number.

For example, the UDP message 40020011c13cffd1e91a8401020304: "Unsupported option number 258"

(Option 258 is the No-Response option RFC-7967, listed in IANA CoAP Option Numbers)

Removing the unsupported option, 40020011c13cff8401020304, you get to see the full message details:

Message:
{
"type": "Confirmable",
"code": "POST",
"id": 17,
"token": 0,
"options": [
"Content-Format: application/cbor"
]
}

Payload (CBOR):
[1, 2, 3, 4]

It would be nice if unsupported options could be listed as opaque option number, value pairs in the options list, perhaps with a warning at the end.

@twyatt
Copy link
Member

twyatt commented Apr 11, 2023

This sounds like a good request, but admittedly, I don't have a lot of time to work on KoAP these days.
PRs are welcome, otherwise I will try to get to it eventually.

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