Comments (4)
@sbernard31 It is possible to check if request was NON from context, for example:
req.getTransContext().get(NON_CONFIRMABLE)
Similarly, request can be force to be NON by setting context, for example:
post(LOCAL_5683, "/test2").token(13).payload("test").context(NON_CONFIRMABLE, true)
Can we close this ticket?
from java-coap.
Just to be sure, what I need to do is to ensure that a request is a CON.
I guess the right way to do that is :
if (coapRequest.getTransContext().get(TransportContext.NON_CONFIRMABLE)) {
// raise an error;
}
I guess this is OK as a request is either a CON or a NON, right ?
from java-coap.
Yes, that will work.
from java-coap.
So let's close this issue, thx for the addition 🙏
from java-coap.
Related Issues (20)
- General discussion / feedback from Leshan Team HOT 49
- Shared 'observe relation' store at CoAP client side. HOT 6
- Add support of Option without value in Uri-Query. HOT 5
- NPE in Deduplicator HOT 3
- Add a way to configure ACK_RANDOM_FACTOR for retransmission. HOT 3
- We should be able to add `/` and `/*` to `RouterService` HOT 5
- Using Semantic Versioning to manage API changes ? HOT 1
- should `responseTimeout` be mandatory ? HOT 11
- Feedback about new API for CoAP Observe. HOT 34
- RFC9175 Request-Tag and Echo Option HOT 28
- General questions about coap+tcp usage ? HOT 7
- Copy/paste typo in `SingleConnectionSocketServerTransport` ? HOT 2
- Question about cancelling observe with `coap+tcp` ?
- New CoapRequest / CoapResponse Builder API feedback HOT 4
- Notification without observe option HOT 3
- PSK and RPK support using `coap+tcp` HOT 8
- Missing API in Transport Context HOT 1
- Introduce a CoapMessage class/interface ? HOT 4
- Missing peer identity/transport context checks ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-coap.