Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- /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