mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Revision:
11:9ae0fe4517c1
Parent:
9:28bd23e25409
Child:
12:0114a6493457
--- a/MBEDEndpoint.h	Fri Mar 28 16:50:02 2014 +0000
+++ b/MBEDEndpoint.h	Fri Mar 28 17:49:19 2014 +0000
@@ -22,8 +22,8 @@
 // Ethernet Interface
 #include "EthernetInterface.h"
 
-// ErrorHandler support
-#include "ErrorHandler.h"
+// BaseClass support
+#include "BaseClass.h"
 
 // MBED to IOC Resource Map
 #include "MBEDToIOCResourceMap.h"
@@ -44,7 +44,7 @@
 // Preferences Support
 #include "Preferences.h"
   
-class MBEDEndpoint {
+class MBEDEndpoint : public BaseClass {
     private:
         EthernetInterface    *m_ethernet;                                  // ethernet interface
         ErrorHandler         *m_error_handler;                             // our error handler
@@ -60,7 +60,7 @@
          
     public:
         MBEDEndpoint(ErrorHandler *error_handler,EthernetInterface *ethernet);
-       ~MBEDEndpoint();
+        virtual ~MBEDEndpoint();
         ResourceFactory *initResourceFactory();
         void run();
         
@@ -101,9 +101,7 @@
         bool closeTransport(int index,char *key);
         bool closeTransports();
         bool closeEthernet(); 
-        ErrorHandler *logger(); 
         int min(int value1, int value2);
-        IOCEndpoint *iocEndpoint();
 };
 
 #endif // _MBED_ENDPOINT_H_