Library to interact with Shock-Collars that are remotely controllable via ESP32-Boards.
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();
}
Control(ControlAction action, int intensity, int duration)
From here
- For OpenShock (HTTP) get token here
in percent
0-100
in ms
0-30000
OpenShock0-15000
PiShock
For PiShock (HTTP) get information here
For PiShock (HTTP) get information here