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;
});
//do something on my var as response
my_var-=1;
});