is there a chance to extract a value from a string, e.g.
(i need the value between the slashes)
and would like to use it as a global Variable:
global.set ("SP111_131308.State", msg.payload.Switch_State);
Is this even possible in NR ?
let topic = msg.topic.split("/");
global.set (topic + ".State", msg.payload.Switch_State);
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.