[riot-notifications] [RIOT-OS/RIOT] pkg/nimble: add IP-over-BLE support via netif/GNRC (#11578)

Hauke Petersen notifications at github.com
Mon May 27 15:27:47 CEST 2019


haukepetersen commented on this pull request.



> +    if (sdu == NULL) {
+        return NIMBLE_NETIF_NOMEM;
+    }
+    while (pkt) {
+        res = os_mbuf_append(sdu, pkt->data, pkt->size);
+        if (res != 0) {
+            os_mbuf_free_chain(sdu);
+            return NIMBLE_NETIF_NOMEM;
+        }
+        num_bytes += (int)pkt->size;
+        pkt = pkt->next;
+    }
+
+    /* send packet via the given L2CAP COC */
+    do {
+        res = ble_l2cap_send(conn->coc, sdu);

it does. anyway, the return value is not passed on, so this is function internal in this particular place

-- 
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/11578#discussion_r287790807
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190527/f03e87cb/attachment-0001.html>


More information about the notifications mailing list