Skip to content

Commit d523d5d

Browse files
pkg/wakaama/common: mark resource as updated when written to
1 parent 2f7e540 commit d523d5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/wakaama/contrib/objects/common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ static int _set_resource_data(lwm2m_client_data_t *client_data, const lwm2m_uri_
246246

247247
/* write the resource of the specified instance */
248248
uint8_t res = object->writeFunc(uri->instanceId, 1, data, object);
249+
lwm2m_resource_value_changed(client_data->lwm2m_ctx, uri);
250+
249251
if (res != COAP_204_CHANGED) {
250252
result = -EINVAL;
251253
}

0 commit comments

Comments
 (0)