[riot-notifications] [RIOT-OS/RIOT] pkg/wakaama: Add basic LWM2M client implementation (#11036)

Leandro Lanzieri notifications at github.com
Mon Sep 16 13:00:50 CEST 2019


leandrolanzieri commented on this pull request.



> +
+static int _connection_send(lwm2m_client_connection_t *conn, uint8_t *buffer,
+                            size_t buffer_size,
+                            lwm2m_client_data_t *client_data)
+{
+    ssize_t sent_bytes = sock_udp_send(&(client_data->sock), buffer,
+                                       buffer_size, &(conn->remote));
+    if (sent_bytes <= 0) {
+        DEBUG("[_connection_send] Could not send UDP packet: %d\n", sent_bytes);
+        return -1;
+    }
+    conn->last_send = lwm2m_gettime();
+    return 0;
+}
+
+static lwm2m_client_connection_t *_connection_create(int instance_id,

I guess it could be eventually refactored to a module or replaced by an existing pkg.

-- 
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/11036#discussion_r324613991
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190916/69038f70/attachment.htm>


More information about the notifications mailing list