Version FC

Dependencies:   DmTftLibrary eeprom SX1280Lib filesystem mbed

Fork of MSNV2-Terminal_V1-5 by Francis CHATAIN

Revision:
33:6ae45cba7958
Parent:
20:b0281e8a375a
Child:
38:9b43b2415093
Child:
41:5a436163dddf
--- a/DataBase.hpp	Tue Sep 18 20:18:44 2018 +0000
+++ b/DataBase.hpp	Thu Oct 04 07:00:43 2018 +0000
@@ -41,8 +41,12 @@
 // =======================================  Class content 
 class misnet::DataBase 
 {
-
-    // Public variables /methods
+    enum TERMINAL_TYPE {
+        SMART_TOOL = 0,     // Smart Tool
+        GENERIC = 1,        // Generic tool
+        NORMAL_IOT = 2,     // Normal IOT (the terminal is attached to a gateway)
+        BROADCAST_IOT = 3   // Broadcast IOT (the terminal is not attached to a gateway)
+    };
 
     public:              
         DataBase     ();
@@ -50,6 +54,10 @@
 
         void        init () ;
 
+        TERMINAL_TYPE getTerminalType() {
+            return this->_terminal_type;
+        }
+
         short         getNbService              (Service::DEVICE_TYPE cdt); // return the number of declared channels for the payload 
         Service::DEVICE_TYPE getServiceType     (short NumService)  ;        // Get Service type