USE YHTANG AWS ACCOUNT TO TEST MQTT
Dependents: NuMaker-mbed-AWS-IoT-example
Diff: MQTTEthernet.h
- Revision:
- 54:ff9e5c4b52d0
- Parent:
- 43:21da1f744243
diff -r 15b5a280d22d -r ff9e5c4b52d0 MQTTEthernet.h --- a/MQTTEthernet.h Mon Sep 25 12:06:28 2017 +0000 +++ b/MQTTEthernet.h Sat Sep 30 16:46:21 2017 +0000 @@ -9,9 +9,8 @@ class MQTTEthernet : public MQTTSocket { public: - MQTTEthernet() + MQTTEthernet() : MQTTSocket(ð) { - eth.init(); // Use DHCP eth.connect(); } @@ -20,11 +19,6 @@ return eth; } - void reconnect() - { - eth.connect(); // nothing I've tried actually works to reconnect - } - private: EthernetInterface eth;