[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:16 CEST 2021


@leandrolanzieri commented on this pull request.



> + * @param[in]  in               Pointer where to store the data.
+ * @param[in]  in_len           Length of @p out.
+ *
+ * @return 0 on success
+ * @return <0 otherwise
+ */
+static int _set_resource_data_by_path(lwm2m_client_data_t *client_data, const char *path,
+                                      size_t path_len, lwm2m_data_type_t type, void *in,
+                                      size_t in_len)
+{
+    assert(path);
+
+    lwm2m_uri_t uri;
+    if (!lwm2m_stringToUri(path, path_len, &uri)) {
+        DEBUG("[lwm2m:set_resource] malformed path\n");
+        return -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_r665978662
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210708/2de2cecd/attachment-0001.htm>


More information about the notifications mailing list