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: MQTTTransport.h
- Revision:
- 49:965a65122c0f
- Parent:
- 31:e5950e0677be
diff -r 7192a7a4edcd -r 965a65122c0f MQTTTransport.h --- a/MQTTTransport.h Tue Jul 01 22:01:09 2014 +0000 +++ b/MQTTTransport.h Tue Jul 08 14:59:39 2014 +0000 @@ -23,19 +23,21 @@ #include "Transport.h" // MQTT Support -#include "PubSubClient.h" +#include "MQTTEthernet.h" +#include "MQTTClient.h" // MBED to IOC Resource Map #include "MBEDToIOCResourceMap.h" class MQTTTransport : public Transport { private: - PubSubClient *m_mqtt; - MBEDToIOCResourceMap *m_map; - char m_topic[MQTT_IOC_TOPIC_LEN+1]; - char m_endpoint_name[PERSONALITY_NAME_LEN+1]; - int m_ping_counter; - int m_ping_countdown; + MQTTEthernet *m_ipstack; + MQTT::Client<MQTTEthernet, Countdown> *m_mqtt; + MBEDToIOCResourceMap *m_map; + char m_topic[MQTT_IOC_TOPIC_LEN+1]; + char m_endpoint_name[PERSONALITY_NAME_LEN+1]; + int m_ping_counter; + int m_ping_countdown; public: MQTTTransport(ErrorHandler *error_handler,void *endpoint,MBEDToIOCResourceMap *map);