Copyright ©

Mongoose OS Forum


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() {
}, 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?


Sign In or Register to comment.