jvermillard / leshan

OMA Lightweight M2M java implementation - LWM2M
40 stars 25 forks source link

Support alternative root path at registration #52

Closed sbernard31 closed 9 years ago

sbernard31 commented 9 years ago

see lwm2m spec §5.2.1 :

By default, the RFC6690 links of Objects are located under the root path as in the examples above. However, devices might be hosting other Resources on an endpoint, and there may be the need to place Objects under an alternative path. This is achieved by including an OMA LWM2M link in addition to the Object links as follows, e.g. to place Objects under the “/lwm2m” path :

</lwm2m>;rt="oma.lwm2m", 
</lwm2m/1/101> , </lwm2m/1/102>, </lwm2m/2/0>, </lwm2m/2/1>,
</lwm2m/2/2> , </lwm2m/3/0>,</lwm2m/4/0>,</lwm2m/5>

The RFC6690 Resource Type parameter (i.e., rt="oma.lwm2m") MAY be used to provide the information that the path in front of the Resource Type parameter is used for the LWM2M enabler. The Resource Type value “oma.lwm2m” is registered with the appropriate IANA registry for this purpose.