1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/wakaama/common: mark resource as updated when written to

This commit is contained in:
Leandro Lanzieri 2024-02-01 10:29:20 +01:00
parent 2f7e540c3b
commit d523d5dab4
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593

View File

@ -246,6 +246,8 @@ static int _set_resource_data(lwm2m_client_data_t *client_data, const lwm2m_uri_
/* write the resource of the specified instance */
uint8_t res = object->writeFunc(uri->instanceId, 1, data, object);
lwm2m_resource_value_changed(client_data->lwm2m_ctx, uri);
if (res != COAP_204_CHANGED) {
result = -EINVAL;
}