cancel
Showing results for 
Search instead for 
Did you mean: 

How to write variable from flow in cube-monitor?

KJeps.2
Associate II

I think this page would have the content:

https://wiki.st.com/stm32mcu/wiki/STM32CubeMonitor:How_to_write_a_variable_from_flow

It seems that hashKey value can not be read out somewhere?

{"variablelist":[{"address":"{{flow.current_limit_adr}}","name":"current_limit","type":5,"checked":true,"$$hashKey":"object:604","value":"{{payload}}","validity":true}],"accesspoint":0}

(I know how to use the write panel - but need to set 1 variable with value from flow)

11 REPLIES 11

Hello

I have found some issue in the flow :

  • in the write_msg template node, put "address" instead of "adress" (2 d)
  • The type use to write and read is not the same. When you write with the write panel or read, it is type 3 , but in the template it is type 10 (double). You should use 3, or correct the variable type.

Please let me know if it is better now.

Best regards

Stephane

Hello

effectively the double d was the problem:smirking_face: , I correct the "address" and it works now .

thank you very match for your help, I'm very grateful:smiling_face_with_smiling_eyes: