An API for using MQTT over multiple transports for mbed OS 5
Fork of MQTT by
Diff: MQTTEthernet.h
- Revision:
- 47:a38f394916ff
- Parent:
- 43:21da1f744243
diff -r e335fcc1a663 -r a38f394916ff MQTTEthernet.h --- a/MQTTEthernet.h Tue Aug 18 09:57:19 2015 +0000 +++ b/MQTTEthernet.h Mon Jan 30 19:26:31 2017 +0000 @@ -1,4 +1,3 @@ - #if !defined(MQTTETHERNET_H) #define MQTTETHERNET_H @@ -9,10 +8,8 @@ class MQTTEthernet : public MQTTSocket { public: - MQTTEthernet() + MQTTEthernet(EthernetInterface ði) : eth(ethi), MQTTSocket(ethi) { - eth.init(); // Use DHCP - eth.connect(); } EthernetInterface& getEth() @@ -27,9 +24,9 @@ private: - EthernetInterface eth; + EthernetInterface ð }; -#endif +#endif \ No newline at end of file