Implementation of Observe-Composite
See original GitHub issueHello everyone!
I want to participate in the implementation of Observe-Composite functionality.
I’m working on prototype of this functionality and I have a problem:
In COAP module there is org.eclipse.californium.core.server.ServerMessageDeliverer.deliverRequest()
method. This method gets Resource
according to UriPath passed in request.
Then method checkForObserveOption()
addeds ObserveRelation
relation to the exchange. This is necessary to correlate observe client responses with server observe request.
But for the Observe-Composite should be passed multiple paths in payload. I could set LwM2mPath.ROOTPATH
as target and paths in payload like it’s done in CoapRequestBuilder.visit(ReadCompositeRequest request)
, but in that case in method ServerMessageDeliverer.deliverRequest()
I will get RootResource
and checkForObserveOption()
will not pass, because RootResource
is not observable.
Am I doing this in wrong way, or implementation of COAP may be incomplete?
Thank you in advance for your answer.
Issue Analytics
- State:
- Created 2 years ago
- Comments:37 (30 by maintainers)
Top GitHub Comments
I’m want to announce that I just implemented observe-compose functionality (in repository that I mentioned earlier) 😄. It needs a lot of code cleaning and the Redis integration is not implemented yet, but you can check the solution in general.
Yes, I think we can close this issue. For now I’m going to work on #1046