CShocker 2.4.1

dotnet add package CShocker --version 2.4.1
NuGet\Install-Package CShocker -Version 2.4.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CShocker" Version="2.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CShocker --version 2.4.1
#r "nuget: CShocker, 2.4.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CShocker as a Cake Addin
#addin nuget:?package=CShocker&version=2.4.1

// Install CShocker as a Cake Tool
#tool nuget:?package=CShocker&version=2.4.1

Library to interact with Shock-Collars that are remotely controllable via ESP32-Boards.

GitHub License NuGet Version

Usage

public static void Main(string[] args){
    string apiKey = ":)";
    
    OpenShockHttp openShockHttp = new (apiKey);
    OpenShockShocker shocker1 = openShockHttp.GetShockers().First();
    shocker1.Control(ControlAction.Vibrate, 20, 1000);
    
    shocker1.Dispose();
    
    List<SerialPortInfo> serialPorts = SerialHelper.GetSerialPorts();
    int selectedPort = 1;
    OpenShockSerial openShockSerial = new(serialPorts[selectedPort], apiKey);
    OpenShockShocker shocker2 = openShockSerial.GetShockers().First();
    shocker2.Control(ControlAction.Vibrate, 20, 1000);
    
    shocker2.Dispose();
}

Shocker.Control

Control(ControlAction action, int intensity, int duration)

ControlAction

From here

Variables

ApiKey

  • For OpenShock (HTTP) get token here

Intensity Range

in percent

0-100

Duration Range

in ms

  • 0-30000 OpenShock
  • 0-15000 PiShock

Future

Username (PiShockHttp only)

For PiShock (HTTP) get information here

Sharecode (PiShockHttp only)

For PiShock (HTTP) get information here

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.4.1 91 2/15/2024
2.4.0 102 2/12/2024
2.3.1 96 2/11/2024
2.3.0 89 2/11/2024
2.2.0 92 2/4/2024
2.1.1 93 2/4/2024
2.1.0 95 2/1/2024
2.0.2 103 1/29/2024
2.0.0 82 1/29/2024
1.3.8 89 1/28/2024
1.3.7 114 1/28/2024
1.3.6 100 1/20/2024
1.3.4 94 1/20/2024
1.3.2 97 1/20/2024
1.3.1 94 1/20/2024
1.3.0 95 1/20/2024
1.2.5 103 1/19/2024
1.2.4 93 1/19/2024
1.2.3 111 1/19/2024
1.2.2 86 1/19/2024
1.2.0 99 1/19/2024
1.1.11 114 1/17/2024
1.1.10 113 1/17/2024
1.1.9 115 1/17/2024
1.1.8 111 1/17/2024
1.1.7 119 1/17/2024
1.1.6 106 1/17/2024
1.1.5 116 1/17/2024
1.1.4 103 1/17/2024
1.1.3 116 1/17/2024
1.1.2 113 1/17/2024
1.1.1 116 1/17/2024
1.1.0 113 1/17/2024
1.0.5 112 1/17/2024
1.0.4 112 1/17/2024
1.0.3 116 1/17/2024
1.0.2 107 1/17/2024
1.0.1 111 1/17/2024
1.0.0 114 1/17/2024