Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/tuyanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-04-07 19:18:22 +0300
committerGitHub <noreply@github.com>2022-04-07 19:18:22 +0300
commit31cfa238818d9fdec3bae4f7437ae8811c19a03e (patch)
tree513fb27261367f1aaea0fd275cf291ed72900e86
parente0e54ef0c9f95fa670474e8e51a6e722af3c4134 (diff)
Update README.md
New method names
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 3a83153..ebd80a3 100644
--- a/README.md
+++ b/README.md
@@ -216,20 +216,20 @@ TuyaLocalResponse response = await device.SendAsync(TuyaCommand.CONTROL, device.
Finally, there are `GetDps()` and `SetDps()` methods:
```C#
-Dictionary<int, object> dps = await device.GetDps();
+Dictionary<int, object> dps = await device.GetDpsAsync();
// Change multiple values at once
-Dictionary<int, object> newDps = await device.SetDps(new Dictionary<int, object> { { 1, false }, { 2, true } });
+Dictionary<int, object> newDps = await device.SetDpsAsync(new Dictionary<int, object> { { 1, false }, { 2, true } });
// Change single value
-newDps = await device.SetDp(1, true);
+newDps = await device.SetDpAsync(1, true);
```
Some devices may have dynamically changed values, such as timers. They need to be updated before reading:
```C#
-newDps = await device.UpdateDps(new int[] { 9, 10 });
+newDps = await device.UpdateDpsAsync(new int[] { 9, 10 });
```
Or just:
```C#
-newDps = await device.UpdateDps(9, 10);
+newDps = await device.UpdateDpsAsync(9, 10);
```
## Credits