This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSS Monitoring a Value Change on Variable

Hi,

I've a question about my global variables. Is that possible I can associate an event to my variable and trigger a callback function whenever
the value of the variables changes.

e.g.

int my_var=0;

void my_isr(){ // an interuppt service routine called in response to an internal timer

my_var+=1;
}

//On Javascript side, Im looking for something this

ds.ObserveValueChange("my_var"

,function(){

//do something on my var as response
my_var-=1;

});