FUXA
FUXA copied to clipboard
How to make a tag passed by parameter return its value in the FUXA script ?
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();