Hi
I add a environment variables in the subflow. name is PinNumber and type is string. I have a Function node in this subflow. How to access PinNumber in the Function node ?
[{"id":"f89b2c94.be924","type":"func-exec","z":"aa6c467e.7329e","name":"cat gdix","func":"//var Pn = env.get(\"PinNumber\");\nvar exec = child_process.exec('cat /dev/gdi1', (error, stdout, stderr) => { \n if (error) { \n console.error(
exec error: {error}`); \n return; \n } \n //console.log(`stdout: {stdout}); \n //console.log(
stderr: ${stderr}); \n msg.payload = stdout.split('\\n').join('');\n callback(msg);\n}); ","outputs":1,"noerr":0,"x":382,"y":112,"wires":[[]]}]