Hello, how is it possible to change a variable by pressing a button? I just can change a variable by using the write panel but. regards
..
..
Hi danielspronk9 ,
To write data by flow, the following payload must be sent to probe out node ,with the topic “write�? :
{
"variablelist": [
{
"address": "0x20000060",
"type": 4,
"value": "xxxx"
}
],
"accesspoint": 0
}
My proposed solution with standard nodes is :

I have added a slider to generate the value (but can be done by any node) then the “template�? node formats the payload, and the change node set the topic.
the template node content :

The variable address and variable type must be filled here. For the type and address, the easiest way it to try first with a write panel and a debug node, and see the values. The payload value from input will be inserted in the template. (the value to write).
The next node is a “change�? to set the topic to write 

the result :

When the slider is moved, the new value is written to g_constDouble
I attach the 3 nodes flow to the message.
Let me know if it is ok.
Best regards
Landry
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.