Multitech xDot Utils

Revision:
6:febbdd0d0e55
Parent:
4:db99b2a7d062
--- a/dot_defs.h	Sun Jul 22 12:42:09 2018 +0300
+++ b/dot_defs.h	Mon Sep 17 12:47:16 2018 +0300
@@ -1,24 +1,42 @@
 #ifndef MBED_MULTITECHDOT_DOT_DEFS_H
 #define MBED_MULTITECHDOT_DOT_DEFS_H
 
+#include "mDot.h"
 #include "MTSLog.h"
 
 struct dot_config {
     /**
-     * DevAddr, 4 bytes.
+     * Join Mode
+     */
+     mDot::JoinMode join_mode;
+
+    /**
+     * DevAddr, 4 bytes, for MANUAL (ABP) join mode.
      */
     uint8_t network_address[4];
 
     /**
-     * NwkSKey, 16 bytes
+     * NwkSKey, 16 bytes, for MANUAL (ABP) join mode.
      */
     uint8_t network_session_key[16];
 
     /**
-     *  AppSKey, 16 bytes
+     *  AppSKey, 16 bytes, for MANUAL (ABP) join mode.
      */
     uint8_t data_session_key[16];
 
+    /**
+     *  AppEUI or Network ID, 16 bytes, for OTA join mode.
+     */
+    uint8_t network_id[16];
+
+    /**
+     *  AppKey or Network Key, 16 bytes, for OTA join mode.
+     */
+    uint8_t network_key[16];
+
+    uint8_t join_delay;
+
     uint8_t frequency_sub_band;
 
     bool public_network;
@@ -28,6 +46,8 @@
      */
     uint8_t ack;
 
+    mDot::DataRates data_rate;
+
     /**
      * Enable Adaptive Data Rate
      */