Test program

This commit is contained in:
glax 2025-01-16 22:36:57 +01:00
parent 0b98638cd5
commit 828a1a2bfa

View File

@ -15,6 +15,8 @@ while(apiKey is null || apiKey.Length < 1)
OpenShockHttp openShockHttp = new (apiKey, logger: logger);
foreach (OpenShockShocker shocker in openShockHttp.GetShockers())
{
shocker.Control(ControlAction.Vibrate, 20, 1000);
shocker.Control(ControlAction.Vibrate, 20, 1000);
shocker.Control(ControlAction.Vibrate, 20, 1000);
Thread.Sleep(1100);
}
@ -55,3 +57,6 @@ OpenShockShocker deserialized = JsonConvert.DeserializeObject<OpenShockShocker>(
shocker.Dispose();
deserialized.Dispose();
*/
while(!Console.KeyAvailable)
Thread.Sleep(100);