@pythoncoder You are right, clean code must follow the best standard. I wrote this code while I was commuting, I did not thought about that. Another thing regarding the board, it is hard to debug, because I do not have debugger and have to log files. Since I am Android and iOS developer, I used to use debugger. Will try to log more and find what is going on. Thanks for hint to append the file, I have missed it, sometimes the hardest thing is to google it in right way. It is easier for me to add arduino board as WTD instead of implementing it to ESP board.
@kevinkk525 Thanks for wtd class, I assume that I need just tu push the file to the board, and make the call in my code?
What I am assuming that the problem is regarding my ntptime class, since I am running local NTP server on my raspberry pi, in case internet is dead.
Unfortunately, it is hard to make code to be reliant and I do not like defensive programming, but with open source projects it is almost always like that. But, hey I am happy that people were willing to share knowledge and effort with the rest of th world
P.S. I will add WTD class, also will debug little bit more my code and observe how it behaves.
Must solve this problem, winter is coming
Thanks for your time and effort, I really appreciate that.
Will update you.