[riot-notifications] [RIOT-OS/RIOT] pkg/wakaama: add get set functions and cleanup client connection (#16203)

Leandro Lanzieri notifications at github.com
Thu Jul 8 10:24:11 CEST 2021


@leandrolanzieri commented on this pull request.



> +    case LWM2M_TYPE_OPAQUE:
+        data->value.asBuffer.length = in_len;
+        data->value.asBuffer.buffer = in;
+        break;
+
+    default:
+        DEBUG("[lwm2m:get_data] not supported type\n");
+        result = -1;
+        goto free_out;
+        break;
+    }
+
+    /* write the resource of the specified instance */
+    uint8_t res = object->writeFunc(uri->instanceId, 1, data, object);
+    if (res != COAP_204_CHANGED) {
+        result = -1;

Changed!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16203#discussion_r665978631
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210708/8e0f6fb5/attachment.htm>


More information about the notifications mailing list