[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cf-dev] Nested Resource
|
Hi Bin,
I'm not sure, if I understand your question.
If you want a resource with path "test/helloworld" you may try to
- First add the "test" resource to your coap-server
- Second add the child "helloworld" to the "test" resource.
If you try to add a "test/helloworld" resource to the server directly, this would be only accessible with one URI path option " test/helloworld ".
So for using such a resource, you must escape the "/" in the uri to suppress the generation of a request with two uri options "test" and "helloworld".
I guess, you want the first, so just register the resources as tree (as described above).
Mit freundlichen Grüßen / Best regards
Achim Kraus
Bosch Software Innovations GmbH
Communications (INST/ECS4)
Stuttgarter Straße 130
71332 Waiblingen
GERMANY
www.bosch-si.de
www.blog.bosch-si.com
Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB 148411 B
Executives: Dr.-Ing. Rainer Kallenbach; Michael Hahn
Von: cf-dev-bounces@xxxxxxxxxxx [mailto:cf-dev-bounces@xxxxxxxxxxx] Im Auftrag von bin ma
Gesendet: Dienstag, 21. März 2017 23:54
An: Californium (Cf) developer discussions <cf-dev@xxxxxxxxxxx>
Betreff: [cf-dev] Nested Resource
Hello,
I am evaluating Californium and I have some issue with nested resource. For example, I tried to make following resource available:
coap://localhost:5683/test/helloworld
I could not figure out a way to make it work. I can do simple URL like coap://localhost:5683/helloworld with no problem but I could not find a way to do nested URL.
Can Any one give me a hint?
Highly appreciate for any help.
Bin