You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a timer to update the time for a watchface for the Amazfit band 7 which uses ZeppOS v1.0 API.
functionstartClock(){consttimer1=timer.createTimer(500,1000,function(){drawTime();// Call the function to update the time on the screen});// Optionally, keep a reference to the timer if you need to stop it laterthis.timer=timer1;}functionstopClock(){if(this.timer){timer.stopTimer(this.timer);}}
But the typeof timer is null and thus createTimer is undefined
I am trying to create a timer to update the time for a watchface for the Amazfit band 7 which uses ZeppOS v1.0 API.
But the typeof timer is null and thus createTimer is undefined
According to the API docs: https://docs.zepp.com/docs/1.0/watchface/api/timer/createTimer/ there should be a timer object available. (somehow it is null, not undefined).
Any ideas?
The text was updated successfully, but these errors were encountered: