MQTT client to test the ENC28J60-EMAC on NUCLEO-F446RE.

Dependencies:   ENC28J60-EMAC

MQTT/MQTTEthernet.h

Committer:
hudakz
Date:
2021-03-29
Revision:
5:d9570dbf2f82
Parent:
0:238f0d0c0ba3

File content as of revision 5:d9570dbf2f82:


#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