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:
commit
ee624b5185
@ -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;
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user