-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat(coap-core): Add java-coap specific header option for correlation tags #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦸
@sbernard31 FYI, we added new custom coap option that is meant to be equivalent of http |
You're refer to Is it mainly used for https://stackoverflow.com/a/27174552/5088764 or https://stackoverflow.com/a/54356305/5088764 ? |
At least I don't see any registered option which looks like that at : https://www.iana.org/assignments/core-parameters/core-parameters.xhtml#option-numbers |
I'm not sure exactly how you want to use it. If yes, re-reading Request-Tag Option, I feel this is maybe the nearest existing CoAP concept ? but theoretically intended to be used only with block transfer BUT RFC says :
and
So maybe it's ok ? 🤔 Anyway, maybe this is good question to ask at [email protected]. (explaining your use case) |
|
Correct. After more searching, I maybe know why it was so hard to find specification. This is because this is not a real standard.
If you search something about correlating Request and Response then could you use CoAP token (OR CoAP token+Peer Identitity) to do that ? Anyway, If nothing match your need I think it's OK to use a non standard option header but I strongly encourage to share your need/question at [email protected], you will maybe have better answer than mine and you will let them know community needs, so maybe we will have a standard before everybody create its own option header like in HTTP (X-request-ID, X-correlation-ID ...) |
The option allows to send and receive correlation tags to match CoAP requests and responses with any application specific actions.
Option number is a randomly generated number (29643) from the Expert Review range.