RTC Alarm providing datetime tuple

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Posts: 1
Joined: Tue Jan 22, 2019 5:52 pm

RTC Alarm providing datetime tuple

Post by ocbcartonblinde » Tue Jan 22, 2019 6:00 pm

Hello all,

In documentation we can see for RTC.Alarm() args signature a time arg that can take a datetime tuple.
the doc: https://docs.micropython.org/en/latest/ ... e.RTC.html

I try this with this example but i did not work once code was uploaded in my esp8266.
My code :

rtc_time = RTC()
rtc_time.alarm((2019, 1, 22, 1, 19, 25), repeat=False)
rtc_i = rtc.irq(trigger=RTC.ALARM0, handler=test, wake=machine.SLEEP)

What wrong in my code ? I don't find any more precise information about this func ...

Thx for advance and regards.

Post Reply