23.11.2020, 12:48
(This post was last modified: 23.11.2020, 12:48 by Erwin van der Zwart.)
Try this:
Code:
$(function(){
grp.listen('32/1/18', function(object, state) {
if(state == 'init'){
var lastvalue = object.value;
} else {
if (lastvalue != object.value){
console.log('value is changed');
// Do here other actions
lastvalue = object.value;
}
}
}, true); // set to true to execute on same object value
});