[riot-notifications] [RIOT-OS/RIOT] gnrc_lorawan: add initial support for GNRC based LoRaWAN stack (v2) (#11022)

José Alamos notifications at github.com
Wed May 22 17:05:59 CEST 2019


jia200x commented on this pull request.



> +    if (!buf || !data || !length) {
+        return -EINVAL;
+    }
+
+    buf->data = data;
+    buf->size = length;
+    buf->index = 0;
+    return 0;
+}
+
+static gnrc_pktsnip_t *_build_join_req_pkt(uint8_t *appeui, uint8_t *deveui, uint8_t *appkey, uint8_t *dev_nonce)
+{
+    gnrc_pktsnip_t *pkt = gnrc_pktbuf_add(NULL, NULL, sizeof(lorawan_join_request_t), GNRC_NETTYPE_UNDEF);
+
+    if (!pkt) {
+        goto out;

done

-- 
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/11022#discussion_r286540481
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190522/3b9dd6eb/attachment.html>


More information about the notifications mailing list