Thanks your your answer. I have modified your flow accordingly, please find attached flow.
Here are the updates done in the flow :
- The main update concerns the way the data_sample_not_pinged_count & stream_status are written. Instead of using a write panel, I use 2 template nodes which forces the values for these 2 variables from the flow editor. These 2 template nodes are triggered by :
- Then I remove some useless nodes (write node, variable node that were used to write the data_sample_not_pinged_count & stream_status variables)
- Finally I also remove one useless switch node, as you can have several rules inside a single switch.
There are plenty of good document to read. The first one is the STM32CubeMonitor wiki available at
https://wiki.st.com/stm32mcu/wiki/STM32CubeMonitor:STM32CubeMonitor_overview. It is updated on regular basis with questions/answer coming from the this forum.
If you want more explanation on node-red framework, there is the node-red website which provides plenty of information from beginner to expert : https://nodered.org/docs/
Hope it answers your question