bluetoothctl: add power and help examples (#7387)
This commit is contained in:
@@ -3,26 +3,34 @@
|
|||||||
> Manage Bluetooth devices from the command-line.
|
> Manage Bluetooth devices from the command-line.
|
||||||
> More information: <https://www.npmjs.com/package/bluetoothctl>.
|
> More information: <https://www.npmjs.com/package/bluetoothctl>.
|
||||||
|
|
||||||
- Enter the bluetoothctl shell:
|
- Enter the `bluetoothctl` shell:
|
||||||
|
|
||||||
`bluetoothctl`
|
`bluetoothctl`
|
||||||
|
|
||||||
- List devices:
|
- List all known devices:
|
||||||
|
|
||||||
`bluetoothctl -- devices`
|
`bluetoothctl devices`
|
||||||
|
|
||||||
- Pair a device:
|
- Power the Bluetooth controller on or off:
|
||||||
|
|
||||||
`bluetoothctl -- pair {{mac_address}}`
|
`bluetoothctl power {{on|off}}`
|
||||||
|
|
||||||
|
- Pair with a device:
|
||||||
|
|
||||||
|
`bluetoothctl pair {{mac_address}}`
|
||||||
|
|
||||||
- Remove a device:
|
- Remove a device:
|
||||||
|
|
||||||
`bluetoothctl -- remove {{mac_address}}`
|
`bluetoothctl remove {{mac_address}}`
|
||||||
|
|
||||||
- Connect a paired device:
|
- Connect to a paired device:
|
||||||
|
|
||||||
`bluetoothctl -- connect {{mac_address}}`
|
`bluetoothctl connect {{mac_address}}`
|
||||||
|
|
||||||
- Disconnect a paired device:
|
- Disconnect from a paired device:
|
||||||
|
|
||||||
`bluetoothctl -- disconnect {{mac_address}}`
|
`bluetoothctl disconnect {{mac_address}}`
|
||||||
|
|
||||||
|
- Display help:
|
||||||
|
|
||||||
|
`bluetoothctl help`
|
||||||
|
Reference in New Issue
Block a user