mqtt specific components for the impact mbed endpoint library
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
Diff: MBEDEndpoint.h
- Revision:
- 11:9ae0fe4517c1
- Parent:
- 9:28bd23e25409
- Child:
- 12:0114a6493457
diff -r d96c57c19611 -r 9ae0fe4517c1 MBEDEndpoint.h --- 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_