Skip to content

Bluetooth ​

API documentation for Bluetooth.

Methods ​

bluetooth.player.next ​

bluetooth.player.next

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.player.next",
  "params": [
    "/org/bluez/hci0/dev_8C_85_90_C9_1D_18"
  ],
  "id": 3
}

Response

bluetooth.player.pause ​

bluetooth.player.pause

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.player.pause",
  "params": [
    "/org/bluez/hci0/dev_8C_85_90_C9_1D_18"
  ],
  "id": 3
}

Response

bluetooth.player.play ​

bluetooth.player.play

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.player.play",
  "params": [
    "/org/bluez/hci0/dev_8C_85_90_C9_1D_18"
  ],
  "id": 3
}

Response

bluetooth.player.prev ​

bluetooth.player.prev

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.player.prev",
  "params": [
    "/org/bluez/hci0/dev_8C_85_90_C9_1D_18"
  ],
  "id": 3
}

Response

bluetooth.player.stop ​

bluetooth.player.stop

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.player.stop",
  "params": [
    "/org/bluez/hci0/dev_8C_85_90_C9_1D_18"
  ],
  "id": 3
}

Response

bluetooth.player ​

bluetooth.player

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.player",
  "id": 3
}

Response

bluetooth.player_pcm ​

bluetooth.player_pcm

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.player_pcm",
  "id": 3
}

Response

bluetooth.adapter_get_state ​

bluetooth.adapter_get_state

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.adapter_get_state",
  "id": 3
}

Response

bluetooth.adapter_set_state ​

bluetooth.adapter_set_state

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.adapter_set_state",
  "params": {
    "state": false
  },
  "id": 3
}

Response

bluetooth.connect ​

bluetooth.connect

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.connect",
  "params": {
    "address": "14:4E:FD:88:AE:B1"
  },
  "id": 3
}

Response

bluetooth.device ​

bluetooth.device

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.device",
  "params": {},
  "id": 3
}

Response

bluetooth.device_volume ​

bluetooth.device_volume

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.device_volume",
  "params": {
    "address": "14:4E:FD:88:AE:B1",
    "left": 127,
    "right": 127
  },
  "id": 3
}

Response

bluetooth.devices ​

bluetooth.devices

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.devices",
  "params": {
    "rescan": false
  },
  "id": 3
}

Response

bluetooth.disconnect ​

bluetooth.disconnect

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.disconnect",
  "params": {
    "address": "14:4E:FD:88:AE:B1"
  },
  "id": 3
}

Response

bluetooth.remove ​

bluetooth.remove

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.remove",
  "params": {
    "address": "14:4E:FD:88:AE:B1"
  },
  "id": 3
}

Response

bluetooth.trust ​

bluetooth.trust

Request

json
{
  "jsonrpc": "2.0",
  "method": "bluetooth.trust",
  "params": {
    "address": "14:4E:FD:88:AE:B1"
  },
  "id": 3
}

Response