How to make RTC clock with NTP Sync for M5StickC in in python (UIflow 1.4.4) ?
the code below gives an error "RTC' object has no atribute 'ntp_sync"
import machine
import utime
rtc = machine.RTC()
rtc.ntp_sync(server="hr.pool.ntp.org", tz="CET-1CEST")
rtc.synced()
True
utime.gmtime()
(2018, 1, 29, 16, 3, 18, 2, 29)
utime.localtime()
(2018, 1, 29, 17, 3, 30, 2, 29)