Imroy / pubsubclient

A client library for the ESP8266 that provides support for MQTT
MIT License
434 stars 115 forks source link

initialize pending pings variable in connect, so that reconnections c… #10

Closed TheDistractor closed 9 years ago

TheDistractor commented 9 years ago

…an occur correctly without disconnecting after each connection once first failure occurs.

(NB: currently used in "loop", but imho, should be reset in connect, otherwise it creates a cyclic disconnect after the first wifi failure/disconnection).

I noticed this after I had a wifi dropout, and each subsequent connect would immediately disconnect.