MQTT for Eth, Wifi, GPRS
Dependencies: FP MQTTPacket
Fork of MQTT by
Diff: MQTTEthernet.h
- Revision:
- 43:b1ae0ac88df9
- Parent:
- 41:b7e86fa6dbb8
- Child:
- 44:f53a95f9c1d8
--- a/MQTTEthernet.h Thu Aug 21 12:40:43 2014 +0000 +++ b/MQTTEthernet.h Fri Sep 26 08:04:47 2014 +0000 @@ -3,15 +3,21 @@ #define MQTTETHERNET_H #include "MQTT_mbed.h" -#include "EthernetInterface.h" +#include "../W5500Interface/EthernetInterface.h" #include "MQTTSocket.h" class MQTTEthernet : public MQTTSocket { public: - MQTTEthernet() +// MQTTEthernet() +// { +// eth.init(); // Use DHCP +// eth.connect(); +// } + + MQTTEthernet(SPI* spi, PinName cs, PinName reset): eth(spi, cs, reset) { - eth.init(); // Use DHCP + eth.init(); eth.connect(); }