oma-lwm2m: Only send active instances
This commit is contained in:
parent
84cd7a4e92
commit
14cdb30886
|
@ -603,6 +603,9 @@ write_object_instances_link(const lwm2m_object_t *object,
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i = 0; i < object->count; i++) {
|
for(i = 0; i < object->count; i++) {
|
||||||
|
if((object->instances[i].flag & LWM2M_INSTANCE_FLAG_USED) == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
instance = &object->instances[i];
|
instance = &object->instances[i];
|
||||||
PRINTF(",</%d/%d>", object->id, instance->id);
|
PRINTF(",</%d/%d>", object->id, instance->id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue