Multitech xDot Utils

Revision:
4:db99b2a7d062
Parent:
3:7fa5603c10dc
Child:
6:febbdd0d0e55
diff -r 7fa5603c10dc -r db99b2a7d062 MultitechDot.h
--- a/MultitechDot.h	Wed Feb 21 12:52:15 2018 +0200
+++ b/MultitechDot.h	Mon May 21 18:08:09 2018 +0300
@@ -1,14 +1,9 @@
 #ifndef MBED_MULTITECHDOT_H
 #define MBED_MULTITECHDOT_H
 
-#include "mbed.h"
-#include "mDot.h"
-#include "MTSLog.h"
-#include "MTSText.h"
-#include "dot_defs.h"
-#include "xdot_low_power.h"
+#include "BaseDot.h"
 
-class MultitechDot : public mDot {
+class MultitechDot : public BaseDot {
 public:
 
     static MultitechDot *get_instance(struct dot_config *config);
@@ -17,49 +12,12 @@
 
     struct dot_config *get_config();
 
-    void display_config();
-
-    //todo use dot_config param
-    void update_ota_config_name_phrase(
-            std::string network_name, std::string network_passphrase, uint8_t frequency_sub_band, bool public_network,
-            uint8_t ack
-    );
-
-    //todo use dot_config param
-    void update_ota_config_id_key(
-            uint8_t *network_id, uint8_t *network_key, uint8_t frequency_sub_band, bool public_network, uint8_t ack
-    );
-
     void update_manual_config(struct dot_config *config);
 
-    //todo use dot_config param
-    void update_peer_to_peer_config(
-            uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint32_t tx_frequency,
-            uint8_t tx_datarate, uint8_t tx_power
-    );
-
-    void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold);
-
-    void join_network();
-
-    void deep_sleep(uint32_t min_delay_s);
-
-    void sleep_wake_rtc_only(bool deepsleep);
-
-    void sleep_wake_interrupt_only(bool deepsleep);
-
     void sleep_wake_rtc_or_interrupt(uint32_t delay_s, bool deepsleep);
 
-    void sleep_save_io();
-
     void sleep_reset_hsi();
 
-    void sleep_configure_io();
-
-    void sleep_restore_io();
-
-    void send_data(std::vector<uint8_t> data);
-
 protected:
     struct dot_config *_config;
 };