Skip to content

Commit 47e01fe

Browse files
committed
feat: add HoneyPlayBox devices support
1 parent 4c97952 commit 47e01fe

File tree

7 files changed

+839
-2
lines changed

7 files changed

+839
-2
lines changed

buttplug/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ sha2 = { version = "0.10.8", features = ["std"] }
9999
# Used by several packages, but we need to bring in the JS feature for wasm. Pinned at 0.2 until dependencies update
100100
rand = { version = "0.8" }
101101
getrandom = { version = "0.2.11", features = ["js"] }
102+
md5 = "0.8.0"
102103

103104
[dev-dependencies]
104105
serde_yaml = "0.9.34"

buttplug/buttplug-device-config/build-config/buttplug-device-config-v3.json

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19682,6 +19682,175 @@
1968219682
}
1968319683
}
1968419684
]
19685+
},
19686+
"honeyplaybox": {
19687+
"defaults": {
19688+
"name": "Honey Play Box Device",
19689+
"features": [
19690+
{
19691+
"feature-type": "Battery",
19692+
"sensor": {
19693+
"value-range": [
19694+
[
19695+
0,
19696+
100
19697+
]
19698+
],
19699+
"messages": [
19700+
"SensorReadCmd"
19701+
]
19702+
}
19703+
}
19704+
]
19705+
},
19706+
"configurations": [
19707+
{
19708+
"identifier": [
19709+
"HPB-0520"
19710+
],
19711+
"name": "PEARL 2",
19712+
"features": [
19713+
{
19714+
"feature-type": "Vibrate",
19715+
"actuator": {
19716+
"step-range": [
19717+
0,
19718+
100
19719+
],
19720+
"messages": [
19721+
"ScalarCmd"
19722+
]
19723+
}
19724+
},
19725+
{
19726+
"feature-type": "Battery",
19727+
"sensor": {
19728+
"value-range": [
19729+
[
19730+
0,
19731+
100
19732+
]
19733+
],
19734+
"messages": [
19735+
"SensorReadCmd"
19736+
]
19737+
}
19738+
}
19739+
]
19740+
},
19741+
{
19742+
"identifier": [
19743+
"JXT002"
19744+
],
19745+
"name": "VIBROSA",
19746+
"features": [
19747+
{
19748+
"feature-type": "Vibrate",
19749+
"actuator": {
19750+
"step-range": [
19751+
0,
19752+
100
19753+
],
19754+
"messages": [
19755+
"ScalarCmd"
19756+
]
19757+
}
19758+
},
19759+
{
19760+
"feature-type": "Vibrate",
19761+
"actuator": {
19762+
"step-range": [
19763+
0,
19764+
100
19765+
],
19766+
"messages": [
19767+
"ScalarCmd"
19768+
]
19769+
}
19770+
},
19771+
{
19772+
"feature-type": "Battery",
19773+
"sensor": {
19774+
"value-range": [
19775+
[
19776+
0,
19777+
100
19778+
]
19779+
],
19780+
"messages": [
19781+
"SensorReadCmd"
19782+
]
19783+
}
19784+
}
19785+
]
19786+
},
19787+
{
19788+
"identifier": [
19789+
"HPB-393-1"
19790+
],
19791+
"name": "OLY 2",
19792+
"features": [
19793+
{
19794+
"feature-type": "Vibrate",
19795+
"actuator": {
19796+
"step-range": [
19797+
0,
19798+
100
19799+
],
19800+
"messages": [
19801+
"ScalarCmd"
19802+
]
19803+
}
19804+
},
19805+
{
19806+
"feature-type": "Vibrate",
19807+
"actuator": {
19808+
"step-range": [
19809+
0,
19810+
100
19811+
],
19812+
"messages": [
19813+
"ScalarCmd"
19814+
]
19815+
}
19816+
},
19817+
{
19818+
"feature-type": "Battery",
19819+
"sensor": {
19820+
"value-range": [
19821+
[
19822+
0,
19823+
100
19824+
]
19825+
],
19826+
"messages": [
19827+
"SensorReadCmd"
19828+
]
19829+
}
19830+
}
19831+
]
19832+
}
19833+
],
19834+
"communication": [
19835+
{
19836+
"btle": {
19837+
"names": [
19838+
"JXT002",
19839+
"HPB-393-1",
19840+
"HPB-0520"
19841+
],
19842+
"services": {
19843+
"0000ff12-0000-1000-8000-00805f9b34fb": {
19844+
"tx": "0000ff03-0000-1000-8000-00805f9b34fb",
19845+
"rx": "0000ff02-0000-1000-8000-00805f9b34fb"
19846+
},
19847+
"0000180f-0000-1000-8000-00805f9b34fb": {
19848+
"rxblebattery": "00002a19-0000-1000-8000-00805f9b34fb"
19849+
}
19850+
}
19851+
}
19852+
}
19853+
]
1968519854
}
1968619855
}
1968719856
}

buttplug/buttplug-device-config/device-config-v3/buttplug-device-config-v3.yml

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11285,4 +11285,89 @@ protocols:
1128511285
- S6
1128611286
services:
1128711287
0000ffb0-0000-1000-8000-00805f9b34fb:
11288-
tx: 0000ffb2-0000-1000-8000-00805f9b34fb
11288+
tx: 0000ffb2-0000-1000-8000-00805f9b34fb
11289+
honeyplaybox:
11290+
defaults:
11291+
name: Honey Play Box Device
11292+
features:
11293+
- feature-type: Battery
11294+
sensor:
11295+
value-range: [[0, 100]]
11296+
messages:
11297+
- SensorReadCmd
11298+
11299+
configurations:
11300+
- identifier:
11301+
- HPB-0520
11302+
name: PEARL 2
11303+
features:
11304+
- feature-type: Vibrate
11305+
actuator:
11306+
step-range:
11307+
- 0
11308+
- 100
11309+
messages:
11310+
- ScalarCmd
11311+
- feature-type: Battery
11312+
sensor:
11313+
value-range: [[0, 100]]
11314+
messages:
11315+
- SensorReadCmd
11316+
- identifier:
11317+
- JXT002
11318+
name: VIBROSA
11319+
features:
11320+
- feature-type: Vibrate
11321+
actuator:
11322+
step-range:
11323+
- 0
11324+
- 100
11325+
messages:
11326+
- ScalarCmd
11327+
- feature-type: Vibrate
11328+
actuator:
11329+
step-range:
11330+
- 0
11331+
- 100
11332+
messages:
11333+
- ScalarCmd
11334+
- feature-type: Battery
11335+
sensor:
11336+
value-range: [[0, 100]]
11337+
messages:
11338+
- SensorReadCmd
11339+
- identifier:
11340+
- HPB-393-1
11341+
name: OLY 2
11342+
features:
11343+
- feature-type: Vibrate
11344+
actuator:
11345+
step-range:
11346+
- 0
11347+
- 100
11348+
messages:
11349+
- ScalarCmd
11350+
- feature-type: Vibrate
11351+
actuator:
11352+
step-range:
11353+
- 0
11354+
- 100
11355+
messages:
11356+
- ScalarCmd
11357+
- feature-type: Battery
11358+
sensor:
11359+
value-range: [ [ 0, 100 ] ]
11360+
messages:
11361+
- SensorReadCmd
11362+
communication:
11363+
- btle:
11364+
names:
11365+
- JXT002
11366+
- HPB-393-1
11367+
- HPB-0520
11368+
services:
11369+
0000ff12-0000-1000-8000-00805f9b34fb:
11370+
tx: 0000ff03-0000-1000-8000-00805f9b34fb
11371+
rx: 0000ff02-0000-1000-8000-00805f9b34fb
11372+
0000180f-0000-1000-8000-00805f9b34fb:
11373+
rxblebattery: 00002a19-0000-1000-8000-00805f9b34fb

0 commit comments

Comments
 (0)