Closed hannoverRed closed 2 years ago
This cannot be a general rule: many DPs change on their own under various circumstances.
But it is easy do it for some DPs, if required, using 2 more nodes. Example:
flow.set("last-data", msg);
if (env.get('last-data' ) === undefined)
send(message).
So the message is sent to device one and only one time.
Enjoy
do you have an example flow?
Code function node 'check':
if (flow.get("last data"))
return null;
return msg;
Code function node 'store'
//example: only for DP 5
if(msg.payload.data.dps[5])
flow.set("last-data", msg);
return msg;
enjoy m.s.
Hi, thanks for the tip. but that doesn't change the value. True False
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Auto closing the issue
Hello everyone,
could you get the function that if you send a message to the node, it doesn't output a message. but only a message output if no input value came before?
lg