Skip to content

Commit a83a328

Browse files
committed
fix: Add new Name/UUIDs for Lovense Edge
They keep changing it, so do we. :( Fixes #322
1 parent 6a14e60 commit a83a328

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Buttplug.Server/Bluetooth/BluetoothSubtypeManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ protected BluetoothSubtypeManager([NotNull] IButtplugLogManager aLogManager)
2727
new LovenseRev3BluetoothInfo(),
2828
new LovenseRev4BluetoothInfo(),
2929
new LovenseRev5BluetoothInfo(),
30+
new LovenseRev6BluetoothInfo(),
3031
new MagicMotionBluetoothInfo(),
3132
new VibratissimoBluetoothInfo(),
3233
new VorzeA10CycloneInfo(),

Buttplug.Server/Bluetooth/Devices/Lovense.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,38 @@ public IButtplugDevice CreateDevice(IButtplugLogManager aLogManager,
179179
}
180180
}
181181

182+
internal class LovenseRev6BluetoothInfo : IBluetoothDeviceInfo
183+
{
184+
public enum Chrs : uint
185+
{
186+
Tx = 0,
187+
Rx,
188+
}
189+
190+
public Guid[] Services { get; } = { new Guid("50300001-0023-4bd4-bbd5-a6920e4c5653") };
191+
192+
public string[] Names { get; } =
193+
{
194+
// Hush. Again.
195+
"LVS-Edge37",
196+
};
197+
198+
public Guid[] Characteristics { get; } =
199+
{
200+
// tx characteristic
201+
new Guid("50300002-0023-4bd4-bbd5-a6920e4c5653"),
202+
203+
// rx characteristic
204+
new Guid("50300003-0023-4bd4-bbd5-a6920e4c5653"),
205+
};
206+
207+
public IButtplugDevice CreateDevice(IButtplugLogManager aLogManager,
208+
IBluetoothDeviceInterface aInterface)
209+
{
210+
return new Lovense(aLogManager, aInterface, this);
211+
}
212+
}
213+
182214
internal class Lovense : ButtplugBluetoothDevice
183215
{
184216
private static Dictionary<string, string> friendlyNames = new Dictionary<string, string>()
@@ -193,6 +225,7 @@ internal class Lovense : ButtplugBluetoothDevice
193225
{ "LVS-P36", "Edge" },
194226
{ "LVS-Z36", "Hush" },
195227
{ "LVS-Domi37", "Domi" },
228+
{ "LVS-Edge37", "Edge" },
196229
};
197230

198231
private bool _clockwise = true;

0 commit comments

Comments
 (0)