Hi Sergio,

> On 17 Oct 2017, at 10:54, Sergio Fernández <[email protected]> wrote:
> And when trying to 
> 
> let wanid = 
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", {value: 
> 1}).value[0];
> log(wanid);
> 
> logging an error: faultMessage="Cannot read property '0' of undefined"

Try the following:

let wanid = declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", 
{value: 1});
console.log(wanid[0]);

According to the wiki 
(https://github.com/zaidka/genieacs/wiki/Virtual-Parameters), getting the value 
the way you want works like this:

console.log(wanid[0].value[0]);

-- 
Cas de Reuver
http://cas.reuver.co

_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to