nop
Fork of MQTT by
MQTTEthernet.h
- Committer:
- Hamdi
- Date:
- 2018-02-02
- Revision:
- 50:d3987cca1f83
- Parent:
- 43:21da1f744243
File content as of revision 50:d3987cca1f83:
#if !defined(MQTTETHERNET_H)
#define MQTTETHERNET_H
#include "MQTTmbed.h"
#include "EthernetInterface.h"
#include "MQTTSocket.h"
class MQTTEthernet : public MQTTSocket
{
public:
MQTTEthernet()
{
eth.init(); // Use DHCP
eth.connect();
}
EthernetInterface& getEth()
{
return eth;
}
void reconnect()
{
eth.connect(); // nothing I've tried actually works to reconnect
}
private:
EthernetInterface eth;
};
#endif
