CShocker 3.1.0
dotnet add package CShocker --version 3.1.0
NuGet\Install-Package CShocker -Version 3.1.0
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="3.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CShocker" Version="3.1.0" />
<PackageReference Include="CShocker" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CShocker --version 3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CShocker, 3.1.0"
#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.
#:package CShocker@3.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CShocker&version=3.1.0
#tool nuget:?package=CShocker&version=3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Library to interact with Shock-Collars that are remotely controllable via ESP32-Boards.
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-30000OpenShock0-15000PiShock
Future
Username (PiShockHttp only)
For PiShock (HTTP) get information here
Sharecode (PiShockHttp only)
For PiShock (HTTP) get information here
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Logging (>= 9.0.1)
- Newtonsoft.Json (>= 13.0.3)
- System.IO.Ports (>= 9.0.1)
- System.Management (>= 9.0.1)
-
net9.0
- Microsoft.Extensions.Logging (>= 9.0.1)
- Newtonsoft.Json (>= 13.0.3)
- System.IO.Ports (>= 9.0.1)
- System.Management (>= 9.0.1)
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 | |
|---|---|---|---|
| 3.1.0 | 160 | 1/16/2025 | |
| 3.0.2 | 153 | 1/16/2025 | |
| 3.0.1 | 148 | 1/16/2025 | |
| 3.0.0 | 154 | 1/16/2025 | |
| 2.5.1 | 185 | 11/3/2024 | |
| 2.5.0 | 182 | 11/3/2024 | |
| 2.4.2 | 176 | 11/2/2024 | |
| 2.4.1 | 233 | 2/15/2024 | |
| 2.4.0 | 205 | 2/12/2024 | |
| 2.3.1 | 220 | 2/11/2024 | |
| 2.3.0 | 219 | 2/11/2024 | |
| 2.2.0 | 219 | 2/4/2024 | |
| 2.1.1 | 191 | 2/4/2024 | |
| 2.1.0 | 221 | 2/1/2024 | |
| 2.0.2 | 212 | 1/29/2024 | |
| 2.0.0 | 199 | 1/29/2024 | |
| 1.3.8 | 217 | 1/28/2024 | |
| 1.3.7 | 205 | 1/28/2024 | |
| 1.3.6 | 200 | 1/20/2024 | |
| 1.3.4 | 196 | 1/20/2024 | |
| 1.3.2 | 190 | 1/20/2024 | |
| 1.3.1 | 187 | 1/20/2024 | |
| 1.3.0 | 186 | 1/20/2024 | |
| 1.2.5 | 209 | 1/19/2024 | |
| 1.2.4 | 189 | 1/19/2024 | |
| 1.2.3 | 216 | 1/19/2024 | |
| 1.2.2 | 192 | 1/19/2024 | |
| 1.2.0 | 204 | 1/19/2024 | |
| 1.1.11 | 219 | 1/17/2024 | |
| 1.1.10 | 230 | 1/17/2024 | |
| 1.1.9 | 229 | 1/17/2024 | |
| 1.1.8 | 212 | 1/17/2024 | |
| 1.1.7 | 234 | 1/17/2024 | |
| 1.1.6 | 212 | 1/17/2024 | |
| 1.1.5 | 225 | 1/17/2024 | |
| 1.1.4 | 220 | 1/17/2024 | |
| 1.1.3 | 218 | 1/17/2024 | |
| 1.1.2 | 228 | 1/17/2024 | |
| 1.1.1 | 224 | 1/17/2024 | |
| 1.1.0 | 226 | 1/17/2024 | |
| 1.0.5 | 248 | 1/17/2024 | |
| 1.0.4 | 214 | 1/17/2024 | |
| 1.0.3 | 233 | 1/17/2024 | |
| 1.0.2 | 228 | 1/17/2024 | |
| 1.0.1 | 227 | 1/17/2024 | |
| 1.0.0 | 232 | 1/17/2024 |