Open sbertin-telular opened 5 years ago
I just found OpenMobileAlliance/OMA_LwM2M_for_Developers#422 which is related. The work done here should follow from the resolution of that issue.
Leshan uses -1 for the object instance ID for the JSON format when creating without an instance ID.
Using -1 was a bug and this is now fixed on Leshan. For JSON we just forbid it. For SenML JSON/Cbor we are waiting for OMA answer but my guess this will not be allowed in LWM2M 1.2.
The JSON and SenML JSON formats require the object instance ID for serialization and parsing. This prevent them from being used for a Create without an instance ID. They need to generate and recognize something that looks like "/31024//" to allow Create without an instance ID.