2019-11-19 12:01:22 +00:00
|
|
|
# bluetoothctl
|
|
|
|
|
|
|
|
> Handling bluetooth devices from the shell.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://www.npmjs.com/package/bluetoothctl>.
|
2019-11-19 12:01:22 +00:00
|
|
|
|
|
|
|
- Enter the bluetoothctl shell:
|
|
|
|
|
|
|
|
`bluetoothctl`
|
|
|
|
|
|
|
|
- List devices:
|
|
|
|
|
|
|
|
`bluetoothctl -- devices`
|
|
|
|
|
|
|
|
- Pair a device:
|
|
|
|
|
|
|
|
`bluetoothctl -- pair {{mac_address}}`
|
|
|
|
|
|
|
|
- Remove a device:
|
|
|
|
|
|
|
|
`bluetoothctl -- remove {{mac_address}}`
|
|
|
|
|
|
|
|
- Connect a paired device:
|
|
|
|
|
|
|
|
`bluetoothctl -- connect {{mac_address}}`
|
|
|
|
|
|
|
|
- Disconnect a paired device:
|
|
|
|
|
|
|
|
`bluetoothctl -- disconnect {{mac_address}}`
|