Hello guys,
I want to display a sum of 7 values on a blynk labeled value widget but it didn't work as intended because i see the old values plus the new one start to accumulate and sometimes after a modification a zero, here is my flow:
You have only shared the change node and not the whole flow. Have you tried setting the count of message parts to 7 (with a suitable timeout) in manual mode?
Then I believe join node won't be the way to solve this. You'll need to store each of the slider value in the flow context. Add a change node to each slider output and set a flow context variable separately for each. So first slider would be stored to flow.slider1 etc.
When you have all the previous values stored in the context, you can use a change node expression to sum flow.slider1 + flow.slider2 + ... or so the same in a function node.
The sum expression might also work like:
$sum([flow.slider1, flow.slider2, ...])
...although I'm not sure. I haven't used JSONata all that much myself.
You can do it with a join node set to key/value pairs, wait for 7 to be received, then send value on every new message. Then the join node will remember the previous values of each input. You need a separate topic on each input of course. No need for flow variables.