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-28 22:32:19 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-10-28 22:32:19 +0300
commit166034b06b29bc21376338aadbb4406782b53bbb (patch)
tree22c14739caf10b1e7eb88959937c6e39033b56dc /TuyaScanner.cs
parenta28b63890583fc63e806ec95f5cf572db73660bf (diff)
Downgraded to .NET Standard 2.0 for better compatibility
Diffstat (limited to 'TuyaScanner.cs')
-rw-r--r--TuyaScanner.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/TuyaScanner.cs b/TuyaScanner.cs
index 7e2e1d2..440fe94 100644
--- a/TuyaScanner.cs
+++ b/TuyaScanner.cs
@@ -1,10 +1,10 @@
-using System;
+using Newtonsoft.Json;
+using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Security.Cryptography;
using System.Text;
-using System.Text.Json;
using System.Threading;
namespace com.clusterrr.TuyaNet
@@ -129,7 +129,7 @@ namespace com.clusterrr.TuyaNet
private void Parse(string json)
{
- var deviceInfo = JsonSerializer.Deserialize<TuyaDeviceScanInfo>(json);
+ var deviceInfo = JsonConvert.DeserializeObject<TuyaDeviceScanInfo>(json);
OnDeviceInfoReceived?.Invoke(this, deviceInfo);
if ((OnNewDeviceInfoReceived) != null && !devices.Contains(deviceInfo))
{