Iâm using the method given in advanced RTC example and that works well for me. If you include widgetrtc.h, it will not compile.
As @Costas said, move rtc.begin to BLYNK_CONNECTED() as only after the Blynk connection can the RTC sync with the server. If the widget is not instanced in you UI, the RTC will never sync.
Thanks both for your fast response. I have struggled with this RTC for some days now, I tried both RTC and advanced without succes. I am an amateur sorry for not understanding but if using the std example from Blynk where do I put the BLYNK_CONNECTED? Tried several places but get an: ârtcâ was not declared in this scope.
Hi Costas, sorry I tried the BLYNK_CONNECTED without result. It passes the compiler without failures, but still shows counting from â0â time and 1970. I also tried the advanced type here it also compiles fine but do not print any time. Just connecting like this:
[4228] Connected to WiFi
[4228] IP: 192.168.0.43
[4228]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/ v0.5.0 on NodeMCU
Hi both,
I misunderstood the RTC widget to be included. I also found that I do not need double time liberaries. Everything is working now. THANKS for your understanding and help.