An API for using MQTT over multiple transports

Dependencies:   FP MQTTPacket

Dependents:   Water_Monitor_clone_v1 Cloud_IBM_MbedOS ble-star-mbed

Fork of MQTT by MQTT

MQTTEthernet.h

Committer:
mapellil
Date:
2018-01-24
Revision:
61:688f195846f1
Parent:
54:ff9e5c4b52d0

File content as of revision 61:688f195846f1:


#if !defined(MQTTETHERNET_H)
#define MQTTETHERNET_H

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

class MQTTEthernet : public MQTTSocket
{
public:    
    MQTTEthernet() : MQTTSocket(&eth)
    {
        eth.connect();
    }
    
    EthernetInterface& getEth()
    {
        return eth;
    }
    
private:

    EthernetInterface eth;
    
};


#endif