Hi,
I am trying to save some values in the array but looks like Mongoose OS does not support .push()
method in MJS. I have tried to use .splice()
bit it does not seem to work. This is the code that I have
let arr = [];
let stId =Timer.set(0.5, Timer.REPEAT, function() {
let r = ADC.read(34);
arr.splice(arr.length,0,r);
if (arr.length > 100) {
Timer.del(stId);
print('array ', arr)
}
}, null);