Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Timer with variable repeat time

Hi there,

Is it possible to set up a Timer and set the repetition time depending on a variable? Like this:

let tset = 1000;
Timer.set(tset, Timer.REPEAT, function() {
   //stuff
}, null);

When trying this, on a ESP32 board, it do compiles but when I flash it, it crashes on the process of encrypting.
Is it possible to do this?

Comments

Sign In or Register to comment.