Add MQTTMDM.h
Fork of MQTT by
Revision 47:f9841b2adaa2, committed 2015-12-27
- Comitter:
- jksoft
- Date:
- Sun Dec 27 13:36:12 2015 +0000
- Parent:
- 46:e335fcc1a663
- Commit message:
- MQTTMDM.h???
Changed in this revision
MQTTMDM.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r e335fcc1a663 -r f9841b2adaa2 MQTTMDM.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MQTTMDM.h Sun Dec 27 13:36:12 2015 +0000 @@ -0,0 +1,34 @@ + +#if !defined(MQTTMDM_H) +#define MQTTMDM_H + +#include "MQTTmbed.h" +#include "MDM.h" +#include "MQTTSocket.h" + +class MQTTMDM : public MQTTSocket +{ +public: + MQTTMDM(const char* simpin = NULL,const char* apn = NULL, const char* username = NULL,const char* password = NULL) + { + mdm.connect(simpin, apn,username,password); + } + + MDMSerial& getEth() + { + return mdm; + } + + void reconnect() + { + mdm.disconnect(); + } + +private: + + MDMSerial mdm; + +}; + + +#endif