test

Dependencies:   FP MQTTPacket

Fork of MQTT by Junichi Katsu

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MQTTMDM.h Source File

MQTTMDM.h

00001 
00002 #if !defined(MQTTMDM_H)
00003 #define MQTTMDM_H
00004 
00005 #include "MQTTmbed.h"
00006 #include "MDM.h"
00007 #include "MQTTSocket.h"
00008 
00009 class MQTTMDM : public MQTTSocket
00010 {
00011 public:    
00012     MQTTMDM(const char* simpin = NULL,const char* apn = NULL, const char* username = NULL,const char* password = NULL)
00013     {
00014         mdm.connect(simpin, apn,username,password);
00015     }
00016     
00017     MDMSerial& getEth()
00018     {
00019         return mdm;
00020     }
00021     
00022     void reconnect()
00023     {
00024         mdm.disconnect();
00025     }
00026     
00027 private:
00028 
00029     MDMSerial mdm;
00030     
00031 };
00032 
00033 
00034 #endif