Using MQTT on Dragonfly

Dependencies:   MQTT mbed mtsas

Revision:
0:b32fa0c757d7
Child:
1:5a896191c3c4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MTSCellularManager.hpp	Tue May 09 13:16:48 2017 +0000
@@ -0,0 +1,23 @@
+#include <mbed.h>
+#include <mtsas.h>
+
+class MTSCellularManager {
+public:
+    MTSCellularManager(const char* apn_);
+
+    ~MTSCellularManager();
+
+    bool init();
+
+    void uninit();
+
+    mts::Cellular& getRadio() { return *radio; }
+
+private:
+    // An APN is required for GSM radios.
+    const char* apn;
+    // The MTSSerialFlowControl object represents the physical serial link between the processor and the cellular radio.
+    mts::MTSSerialFlowControl* io;
+    // The Cellular object represents the cellular radio.
+    mts::Cellular* radio;
+};