Imroy / pubsubclient

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

added setTimeGetter function to support time handling when millis() a… #94

Closed egzumer closed 1 year ago

egzumer commented 1 year ago

…ffecting device sleep state is used

When deep sleep is used the value returned by millis() is invalid (millis timers are being stopped). This in turn affects the connection timeout and keep alive functions. External function can be set to source actual time, for example from RTC.