oma-lwm2m: Only send active instances

This commit is contained in:
Joakim Nohlgård 2016-05-24 19:28:17 +02:00
parent 84cd7a4e92
commit 14cdb30886

View File

@ -603,6 +603,9 @@ write_object_instances_link(const lwm2m_object_t *object,
}
for(i = 0; i < object->count; i++) {
if((object->instances[i].flag & LWM2M_INSTANCE_FLAG_USED) == 0) {
continue;
}
instance = &object->instances[i];
PRINTF(",</%d/%d>", object->id, instance->id);