Added function to return network interface.

Dependencies:   MQTTPacket FP

Dependents:   IBMIoTF-2

MQTTEthernet.h

Committer:
lamell
Date:
2020-03-21
Revision:
65:ff8eaf67f510
Parent:
54:ff9e5c4b52d0

File content as of revision 65:ff8eaf67f510:


#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