Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

1. Adding Objects

To add PPPoE credentials, the "InternetGatewayDevice.WANDevice.3.WANConnectionDevice.1.WANPPPConnection.1" has to exist.

So an additional WANPPPConnection-Interface must be created, before any parameters can be modified.

curl -X PUT -i 'http://ip:7557/objects/1' -d '{}'

2. Creating virtual parameters

To differentiate between an 'InternetGatewayDevice' and a 'Device', there are virtual parameters, preventing to check both types of devices.

curl -i 'http://ip:7557/virtual_parameters/SerialNumber' -X PUT -d 'var sn = declare("DeviceID.SerialNumber", {value: Date.now()}); 
return {writable: false, value: [sn.value[0], "xsd:string"]};'

3. Building provisions

A Provision is JavaScript code that can handle provisioning workflow.


  • No labels