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>2021-10-27 23:44:08 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-10-27 23:44:08 +0300
commita724f107722a981dca6932a5b10fece32fb57f5c (patch)
treebcef0aa9cc5f3899050800865ca5a58d6b9ec146
parentf804e57b56c0515ea08e58c6b20c0f9d9c7ce103 (diff)
GetDps() fix
-rw-r--r--TuyaDevice.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/TuyaDevice.cs b/TuyaDevice.cs
index 414eeb4..3c20239 100644
--- a/TuyaDevice.cs
+++ b/TuyaDevice.cs
@@ -198,7 +198,7 @@ namespace com.clusterrr.TuyaNet
{ "t", (DateTime.Now - new DateTime(1970, 1, 1)).TotalSeconds.ToString("0") }
};
string requestJson = JsonSerializer.Serialize(cmd);
- var response = await SendAsync(TuyaCommand.CONTROL, requestJson, tries: 2, nullRetries: 1);
+ var response = await SendAsync(TuyaCommand.DP_QUERY, requestJson, tries: 2, nullRetries: 1);
if (string.IsNullOrEmpty(response.JSON))
throw new InvalidDataException("Response is empty");
var responseJson = JsonDocument.Parse(response.JSON);