mqtt - potistiriProject

Dependencies:   MQTTPacket FP

MQTTEthernet.h

Committer:
dinos95
Date:
2021-03-11
Revision:
60:de9d500da15f
Parent:
54:ff9e5c4b52d0

File content as of revision 60:de9d500da15f:


#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