Closed krwc closed 4 years ago
Section 7.4.4 provides the JSON encoding and in Table 7.4.4 shows an example. So, the answers to your questions are:
Is root path (
/
) allowed in the payload? That is, can Read-Composite be used to read the entire data model the Server has access to?
Yes. The encoding would be something like: [{"n":"/"}]
It would probably be good to add that example to the spec.
Is path to an Object (
/OID
) allowed in the payload?
Yes. Example:
[{"n":"/5"}]
Is path to an Instance (
/OID/IID
) allowed in the payload?
Yes. Example:
[{"n":"/3/0"}]
I should also note that just because you are able to make that request doesn't actually mean that you get the results back that way since the LwM2M Client has to check for access rights.
This issue refers to
OMA-TS-LightweightM2M_Core-V1_1-20180710-A
.Section 6.3.8 Read-Composite section states:
What does it mean in terms of allowed paths in the request payload? In other words:
/
) allowed in the payload? That is, can Read-Composite be used to read the entire data model the Server has access to?/OID
) allowed in the payload?/OID/IID
) allowed in the payload?