Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18686,6 +18686,63 @@
}
}
]
},
"syncbot": {
"defaults": {
"name": "Syncbot",
"features": [
{
"feature-type": "Rotate",
"actuator": {
"step-range": [
0,
127
],
"messages": [
"RotateCmd"
]
}
},
{
"feature-type": "Constrict",
"actuator": {
"step-range": [
0,
88
],
"messages": [
"ScalarCmd"
]
}
},
{
"feature-type": "Position",
"actuator": {
"step-range": [
0,
255
],
"messages": [
"LinearCmd"
]
}
}
]
},
"communication": [
{
"btle": {
"names": [
"V"
],
"services": {
"0000ffe0-0000-1000-8000-00805f9b34fb": {
"tx": "0000ffe1-0000-1000-8000-00805f9b34fb"
}
}
}
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10711,4 +10711,36 @@ protocols:
- S6
services:
0000ffb0-0000-1000-8000-00805f9b34fb:
tx: 0000ffb2-0000-1000-8000-00805f9b34fb
tx: 0000ffb2-0000-1000-8000-00805f9b34fb
syncbot:
defaults:
name: Syncbot
features:
- feature-type: Rotate
actuator:
step-range:
- 0
- 127
messages:
- RotateCmd
- feature-type: Constrict
actuator:
step-range:
- 0
- 88
messages:
- ScalarCmd
- feature-type: Position
actuator:
step-range:
- 0
- 255
messages:
- LinearCmd
communication:
- btle:
names:
- V
services:
0000ffe0-0000-1000-8000-00805f9b34fb:
tx: 0000ffe1-0000-1000-8000-00805f9b34fb
5 changes: 5 additions & 0 deletions buttplug/src/server/device/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ pub mod svakom_v3;
pub mod svakom_v4;
pub mod svakom_v5;
pub mod svakom_v6;
pub mod syncbot;
pub mod synchro;
pub mod tcode_v03;
pub mod thehandy;
Expand Down Expand Up @@ -608,6 +609,10 @@ pub fn get_default_protocol_map() -> HashMap<String, Arc<dyn ProtocolIdentifierF
&mut map,
svakom_v6::setup::SvakomV6IdentifierFactory::default(),
);
add_to_protocol_map(
&mut map,
syncbot::setup::SyncbotIdentifierFactory::default(),
);
add_to_protocol_map(
&mut map,
synchro::setup::SynchroIdentifierFactory::default(),
Expand Down
Loading