An API for using MQTT over multiple transports for mbed OS 5

Dependencies:   FP MQTTPacket

Fork of MQTT by MQTT

MQTTEthernet.h

Committer:
JPlenert
Date:
2017-01-30
Revision:
47:a38f394916ff
Parent:
43:21da1f744243

File content as of revision 47:a38f394916ff:

#if !defined(MQTTETHERNET_H)
#define MQTTETHERNET_H

#include "MQTTmbed.h"
#include "EthernetInterface.h"
#include "MQTTSocket.h"

class MQTTEthernet : public MQTTSocket
{
public:    
    MQTTEthernet(EthernetInterface &ethi) : eth(ethi), MQTTSocket(ethi)
    {
    }
    
    EthernetInterface& getEth()
    {
        return eth;
    }
    
    void reconnect()
    {
        eth.connect();  // nothing I've tried actually works to reconnect 
    }
    
private:

    EthernetInterface ð
    
};


#endif