Multitech xDot Utils

Revision:
2:8d1c64670642
Child:
3:7fa5603c10dc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dot_defs.h	Mon Feb 19 16:11:52 2018 +0200
@@ -0,0 +1,45 @@
+#ifndef MBED_MULTITECHDOT_DOT_DEFS_H
+#define MBED_MULTITECHDOT_DOT_DEFS_H
+
+struct dot_config {
+    /**
+     * DevAddr, 4 bytes.
+     */
+    uint8_t network_address[4];
+
+    /**
+     * NwkSKey, 16 bytes
+     */
+    uint8_t network_session_key[16];
+
+    /**
+     *  AppSKey, 16 bytes
+     */
+    uint8_t data_session_key[16];
+
+    uint8_t frequency_sub_band;
+
+    bool public_network;
+
+    /**
+     * Acknowledgements: 0 to disable acks, otherwise 1 - 8
+     */
+    uint8_t ack;
+
+    /**
+     * Sleep time in seconds
+     */
+    uint32_t sleep_time_s;
+
+    /**
+     * Should sleep deeply
+     */
+    bool should_deep_sleep;
+
+    /**
+     * Log level mts::MTSLog
+     */
+    uint8_t log_level;
+};
+
+#endif