net: lwm2m: SenML Json Base compare fix
Fixed wrong initialized base name objed id. Base name was added to every object instance. Fix will save message size. Signed-off-by: Juha Heiskanen <juha.heiskanen@nordicsemi.no>
This commit is contained in:
parent
5416abfe5f
commit
d75b986151
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ static int put_begin_oi(struct lwm2m_output_context *out, struct lwm2m_obj_path
|
|||
|
||||
if (update_base_name) {
|
||||
fd->base_name.level = LWM2M_PATH_LEVEL_OBJECT_INST;
|
||||
fd->base_name.obj_inst_id = path->obj_id;
|
||||
fd->base_name.obj_id = path->obj_id;
|
||||
fd->base_name.obj_inst_id = path->obj_inst_id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue