Skip to content
Snippets Groups Projects
Commit 84c2444a authored by Marin Karamihalev's avatar Marin Karamihalev
Browse files

Update README.md

parent 34a5bba1
Branches
Tags
No related merge requests found
Pipeline #12370 failed
...@@ -101,6 +101,12 @@ const usp = await connect(options); ...@@ -101,6 +101,12 @@ const usp = await connect(options);
await usp.set("Device.WiFi.Radio.1.", { Name: "radio-1" }); // => void await usp.set("Device.WiFi.Radio.1.", { Name: "radio-1" }); // => void
``` ```
- set object with allowPartial and required attributes
```javascript
await usp.set("Device.WiFi.Radio.1.", { Name: { erquired: true, value: "radio-1" }, allowPartial: true }); // => void
```
- set property - set property
```javascript ```javascript
...@@ -137,6 +143,24 @@ const usp = await connect(options); ...@@ -137,6 +143,24 @@ const usp = await connect(options);
}); // => "Device.NAT.PortMapping.4." }); // => "Device.NAT.PortMapping.4."
``` ```
- add with with allowPartial and required attributes
```javascript
await usp.add("Device.NAT.PortMapping.", {
allowPartial: true,
Description: {
required: true,
value: "webserver1-set",
}
ExternalPort: "80",
Protocol: "TCP",
Interface: "Device.IP.Interface.1",
Enable: "true",
InternalClient: "192.168.1.125",
InternalPort: "5000",
}); // => "Device.NAT.PortMapping.4."
```
- Delete - Delete
```javascript ```javascript
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment