From cf0a7c630d157567e4e3dd535e6661e6bec5f4ae Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 3 Nov 2024 01:11:40 +0100 Subject: [PATCH] Change Program.cs in testapp --- TestApp/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TestApp/Program.cs b/TestApp/Program.cs index fd579de..36a4f33 100644 --- a/TestApp/Program.cs +++ b/TestApp/Program.cs @@ -16,14 +16,16 @@ while(apiKey is null || apiKey.Length < 1) OpenShockHttp openShockHttp = new (apiKey, logger: logger); OpenShockShocker shocker = openShockHttp.GetShockers().First(); shocker.Control(ControlAction.Vibrate, 20, 1000); +Thread.Sleep(1100); +/* File.WriteAllText("shockers.json", JsonConvert.SerializeObject(shocker)); OpenShockShocker deserialized = JsonConvert.DeserializeObject(File.ReadAllText("shockers.json"), new ApiJsonConverter())!; Thread.Sleep(1100); //Wait for previous to end deserialized.Control(ControlAction.Vibrate, 20, 1000); shocker.Dispose(); deserialized.Dispose(); - +*/ /* #pragma warning disable CA1416