change MQTTEthernet.h of MQTT library
Fork of MQTT by
Revision 47:6769c1de66d6, committed 2015-12-02
- Comitter:
- weiarm2015
- Date:
- Wed Dec 02 01:49:27 2015 +0000
- Parent:
- 44:c299463ae853
- Commit message:
- change MQTTEthernet.h of MQTT library
Changed in this revision
MQTTEthernet.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r c299463ae853 -r 6769c1de66d6 MQTTEthernet.h --- a/MQTTEthernet.h Mon Oct 06 11:41:05 2014 +0000 +++ b/MQTTEthernet.h Wed Dec 02 01:49:27 2015 +0000 @@ -11,15 +11,18 @@ public: MQTTEthernet() { - eth.init(); // Use DHCP - eth.connect(); + // eth.init(); // Use DHCP + // eth.connect(); } EthernetInterface& getEth() { return eth; } - + void start(){ + eth.init(); // Use DHCP + eth.connect(); + } void reconnect() { eth.connect(); // nothing I've tried actually works to reconnect