Skip to content

Yoooi0/Buttplug.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buttplug.Net is a buttplug client library written in modern .Net

Release Pre-Release Build

⚙️ Installation

Stable and prerelease builds are available from Nuget:

📄 Sample

var cancellationToken = CancellationToken.None;

//var converter = new ButtplugNewtonsoftJsonConverter();
var converter = new ButtplugSystemTextJsonConverter();
await using var client = new ButtplugClient("Buttplug.Net", converter);

await client.ConnectAsync(new Uri("ws://127.0.0.1:12345/"), cancellationToken);
Console.WriteLine("Connected");

await client.StartScanningAsync(cancellationToken);
await Task.Delay(2500);

foreach (var device in client.Devices)
    await device.ScalarAsync(1, ActuatorType.Vibrate, cancellationToken);

await Task.Delay(1000);
await client.StopAllDevicesAsync(cancellationToken);

More samples available here

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages