Request
{
"method":"GetDevices"
}
Responce
{
"headphones": [{
"name": "string",
"address": "string",
"connected":"bool"
},
{
"name": "string",
"address": "string",
"connected":"bool"
}]
}
Empty if there are no headphones paired in the system
{
"headphones": []
}
Request
{
"method":"ConnectDevice",
"arguments": {
"address": "FC:1D:43:DE:80:49"
}
}
Responce
Get Devices
Request
{
"method":"DisconnectDevice",
"arguments": {
"address": "FC:1D:43:DE:80:49"
}
}
Response
Get Devices
Request
{
"method":"GetDefaultBluetoothAdapter"
}
Response
{
"defaultbluetooth": {
"enabled":"bool"
}
}
Empty if there are no Bluetooth adapter in the system
{
"defaultbluetooth": {}
}
Request
{
"method":"EnableDefaultBluetoothAdapter"
}
Resonance
Get default Bluetooth adapter
Request
{
"method":"DisableDefaultBluetoothAdapter"
}
Resonance
Get default Bluetooth adapter
Request
{
"method":"GetDeckyInfo"
}
Response
{
"info":{
"name": "AirPods (steam3d)",
"address": "12:45:ds:23:fd:12",
"connected": true,
"battery": {
"s": "int",
"sc": "bool",
"l": "int",
"lc": "bool",
"r": "int",
"rc": "bool",
"c": "int",
"cc": "bool"
},
"capabilities": {
"anc"?: "int"
}
}
}
Empty if there are no connected headphones:
{
"info": {}
}
Empty if headphones do not have capabilities:
{
"capabilities": {}
}
Collects requests GetDevices
GetDefaultBluetoothAdapter
GetDeckyInfo
together
Request
{
"method":"GetAll"
}
Response
{
"headphones": [{
"name": "string",
"address": "string",
"connected":"bool"
},
{
"name": "string",
"address": "string",
"connected":"bool"
}],
"defaultbluetooth": {
"enabled":"bool"
},
"info":{
"name": "AirPods (steam3d)",
"address": "12:45:ds:23:fd:12",
"connected": true,
"battery": {
"s": "int",
"sc": "bool",
"l": "int",
"lc": "bool",
"r": "int",
"rc": "bool",
"c": "int",
"cc": "bool"
},
"capabilities": {
"anc?": "int"
}
}
}
Request
{
"method":"SetAnc",
"arguments": {
"address": "string",
"value": "int",
}
}
Responce
Get decky Info