set_timer usage #32
Answered
by
darrylb123
drticcz
asked this question in
Get Help - Q&A
Replies: 1 comment
-
Move the print("Stop") to inside the dummy() function. That is the code
that is run when the timer expires.
…On Fri, 24 Nov 2023, 1:14 am drticcz, ***@***.***> wrote:
I cannot wrap my head around why this extremely simple code prints out
"Start" and "stop" within 10ms instead of the 5s as I want it to... any
explanation?
I run it from the berry console, Tasmota 13.2
def dummy()
return
end
print("start")
tasmota.set_timer(5000, dummy)
print("stop")
—
Reply to this email directly, view it on GitHub
<#32>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTSUVIVG3KRBBQJDWM5P5DYF5R5RAVCNFSM6AAAAAA7X5RUJOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZVHA4DGOBZGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dkebler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I cannot wrap my head around why this extremely simple code prints out "Start" and "stop" within 10ms instead of the 5s as I want it to... any explanation?
I run it from the berry console, Tasmota 13.2
Beta Was this translation helpful? Give feedback.
All reactions