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


@leandrolanzieri commented on this pull request.



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


More information about the notifications mailing list