An API for using MQTT over multiple transports
Fork of MQTT by
Revision 47:b8e1b8365afd, committed 2017-09-25
- Comitter:
- apate131
- Date:
- Mon Sep 25 16:11:42 2017 +0000
- Parent:
- 46:e335fcc1a663
- Commit message:
- amns das
Changed in this revision
MQTTClient.h | Show annotated file Show diff for this revision Revisions of this file |
MQTTmbed.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r e335fcc1a663 -r b8e1b8365afd MQTTClient.h --- a/MQTTClient.h Tue Aug 18 09:57:19 2015 +0000 +++ b/MQTTClient.h Mon Sep 25 16:11:42 2017 +0000 @@ -276,8 +276,6 @@ template<class Network, class Timer, int a, int MAX_MESSAGE_HANDLERS> MQTT::Client<Network, Timer, a, MAX_MESSAGE_HANDLERS>::Client(Network& network, unsigned int command_timeout_ms) : ipstack(network), packetid() { - last_sent = Timer(); - last_received = Timer(); this->command_timeout_ms = command_timeout_ms; cleanSession(); } @@ -504,7 +502,7 @@ int MQTT::Client<Network, Timer, a, b>::yield(unsigned long timeout_ms) { int rc = SUCCESS; - Timer timer = Timer(); + Timer timer; timer.countdown_ms(timeout_ms); while (!timer.expired())
diff -r e335fcc1a663 -r b8e1b8365afd MQTTmbed.h --- a/MQTTmbed.h Tue Aug 18 09:57:19 2015 +0000 +++ b/MQTTmbed.h Mon Sep 25 16:11:42 2017 +0000 @@ -7,13 +7,11 @@ { public: Countdown() - { - t = Timer(); + { } Countdown(int ms) { - t = Timer(); countdown_ms(ms); }