Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions subsys/net/lib/lwm2m/lwm2m_rw_senml_cbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,14 @@ static int put_name_nth_ri(struct lwm2m_output_context *out, struct lwm2m_obj_pa
struct record *record = GET_CBOR_FD_REC(fd);

/* With the first ri the resource name (and ri name) are already in place*/
if (path->res_inst_id > 0) {
return put_begin_ri(out, path);
}

if (record == NULL || !record->record_t_present) {
return 0;
}

/* Name need to be add for each time serialized record */
if (path->level == LWM2M_PATH_LEVEL_RESOURCE_INST) {
return put_begin_ri(out, path);
Expand Down