MQTT library (clone of https://os.mbed.com/teams/mqtt/code/MQTT/)

Dependencies:   FP MQTTPacket

Dependents:   NuMaker-mbed-AWS-IoT-example NuMaker-mbed-OS-6-AWS-IoT-example

MQTTEthernet.h

Committer:
SHLIU1@OANBE02333.nuvoton.com
Date:
20 months ago
Revision:
65:1b626554f238
Parent:
54:ff9e5c4b52d0

File content as of revision 65:1b626554f238:


#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