On Wed, 2017-03-08 at 10:29 -0900, Dan Morphis wrote:
> How about something like this:
>  let instance =
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*", null, {path: 1});
> instance.Name = {value: "Internet", _timestamp: Date.now()};
> instance.NATEnabled = {value: true, _timestamp: Date.now()};

That won't work because it needs to know the parameters you intend to
access (e.g. NATEnabled) before the declare call returns in order to
assign getters and setters.

-- 
Zaid Abdulla <[email protected]>
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to