Description
Hi.
Firstly, thank you very much. Your library is wonderful.
I want to ask you about timer_set and timer_get in arduino. I have an arduino project where I need to save maximum battery as possible because it's powered by a battery with solar panel. To reach it, I use sleep_power_down (deeper power down mode) but it makes that millis() doesn't work well because timer 0 is power down is this mode. WDT wakes up my board every 8 secondos. Every wake up, I test mqtt.loop() and if keep_alive is needed, send it. But here is my problem. Library uses millis() inside get and set timers functions but millis() doesn't return correct time due to sleep periods. My board has a RTC I could use with epoch time, for example, to keep time correctly.
Do you see it possible? Could you follow me how would you do? I have been thinking on put another callback inside MqttClient class where user could set lwmqtt_arduino_timer_get and lwmqtt_arduino_timer_set.
Thanks and regards.