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

Merge pull request #20326 from leandrolanzieri/pr/pkg/wakaama_notify_resource_update

pkg/wakaama: Notify resource updates when writing to resources
This commit is contained in:
benpicco 2024-02-13 22:02:42 +00:00 committed by GitHub
commit ee624b5185
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 0 deletions

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;
}