Skip to content

Commit c1511f5

Browse files
broglep-workLukasWoodtli
authored andcommitted
Allow writing multiple object instances
It's now possible to write multiple instances of the same object.
1 parent 9ae3189 commit c1511f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/management.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,7 @@ static int prv_lwm2m_dm_write(lwm2m_context_t *contextP, uint16_t clientID, lwm2
574574

575575
LOG_ARG_DBG("clientID: %d, format: %s, length: %zd", clientID, STR_MEDIA_TYPE(format), length);
576576
LOG_ARG_DBG("%s", LOG_URI_TO_STRING(uriP));
577-
if (!LWM2M_URI_IS_SET_INSTANCE(uriP)
578-
|| length == 0)
579-
{
577+
if (!LWM2M_URI_IS_SET_OBJECT(uriP) || length == 0) {
580578
return COAP_400_BAD_REQUEST;
581579
}
582580

0 commit comments

Comments
 (0)