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.
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