An API for using MQTT over multiple transports
Fork of MQTT by
Diff: MQTTClient.h
- Revision:
- 47:b8e1b8365afd
- Parent:
- 46:e335fcc1a663
--- 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())