09.12.2020, 09:21
Hi!
Is there any way to use grp.listen() when an object updates but not changes?
I´m doing a emergent notification and many times the message is the same. Object updates but function inside JS doesn´t run.
Is there any way to use grp.listen() when an object updates but not changes?
I´m doing a emergent notification and many times the message is the same. Object updates but function inside JS doesn´t run.
Code:
grp.listen("33/1/255", function(object,state) {
if (state == 'value') {
console.log('Show message')
setTimeout(function(){
console.log('Hide Messase')
}, 4500);
}
});