Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-http DEVI2C_JS MQTTPacket FP
MQTT/MQTTEthernet.h
- Committer:
- kajasu
- Date:
- 2020-02-03
- Revision:
- 1:a8ffffd1beab
- Parent:
- 0:f4dbe435e64c
File content as of revision 1:a8ffffd1beab:
#if !defined(MQTTETHERNET_H)
#define MQTTETHERNET_H
#include "MQTTmbed.h"
#include "EthernetInterface.h"
#include "MQTTSocket.h"
class MQTTEthernet : public MQTTSocket
{
public:
MQTTEthernet() : MQTTSocket(ð)
{
eth.connect();
}
EthernetInterface& getEth()
{
return eth;
}
private:
EthernetInterface eth;
};
#endif