RTC in ESP8266
Posted: Fri Apr 16, 2021 8:19 pm
I'm kind of at a loss at the moment...
usually it's like you need the RTC time and somehow it's not right, with me it's the other way round. My ESP8266 knows exactly what time it is, but I have no idea how it knows. I don't have wifi configured and it's only connected to the PC via the USB port, but after:
he displays the correct data. How does it know? Could anybody help me...
usually it's like you need the RTC time and somehow it's not right, with me it's the other way round. My ESP8266 knows exactly what time it is, but I have no idea how it knows. I don't have wifi configured and it's only connected to the PC via the USB port, but after:
Code: Select all
from machine import RTC
rtc = RTC()
rtc.datetime()