FUXA icon indicating copy to clipboard operation
FUXA copied to clipboard

How to make a tag passed by parameter return its value in the FUXA script ?

Open Pichitor opened this issue 2 years ago • 1 comments

How to make a tag (string type and pass by parameter to a script) return its value on the script? I have tried on internal tags , external tags and finally fuxa server tags. Any tag will return its technical id (t_59acb4a2-eb204648), not it value. I have checked by the console and external server, they got the technical id. What i do wrong or misundertand?

I use the script like this: const http = require('http'); var Path='/?Device=' + Device + '&Command=' + Command; const options = { hostname: '127.0.0.1', port: 9600, path: Path, method: 'GET', }; console.log('Device:'+Device); const req = http.request(options, res => { console.log(statusCode: ${res.statusCode});

res.on('data', d => { process.stdout.write(d); }); });

req.on('error', error => { console.error(error); }); req.end();

Pichitor avatar May 17 '22 02:05 Pichitor

Hi, $setTag, to set value of Tag $getTag, to get current Tag value

wiki

unocelli avatar May 17 '22 15:05 unocelli