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

José Alamos notifications at github.com
Tue Mar 19 11:30:17 CET 2019


jia200x commented on this pull request.



> +{
+    /* This is the longest key */
+    uint8_t key[LORAMAC_APPKEY_LEN];
+
+    size_t key_len = fmt_hex_bytes(key, key_str);
+    size_t expected_len;
+    switch(opt) {
+        case NETOPT_APPKEY:
+        case NETOPT_APPSKEY:
+        case NETOPT_NWKSKEY:
+            /* All keys have the same length as the APP KEY */
+            expected_len = LORAMAC_APPKEY_LEN;
+            break;
+        default:
+            /* Same rationale here */
+            expected_len = LORAMAC_DEVEUI_LEN;

because this default case only gets triggered with DEVEUI and APPEUI. Both are 8U long

-- 
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_r266819201
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190319/3e5138c2/attachment.html>


More information about the notifications mailing list