Skip to content

Instantly share code, notes, and snippets.

@zeheater
Created May 27, 2021 07:04
Show Gist options
  • Save zeheater/034ad5a3e55946592a6aba51179b835f to your computer and use it in GitHub Desktop.
Save zeheater/034ad5a3e55946592a6aba51179b835f to your computer and use it in GitHub Desktop.
Sending raw bytes to SPP Mobile Printer with bluetoothctl bluez

Send Raw Bytes to Bluetooth SPP with bluetoothctl

bluetoothctl gatt.list-attributes
bluetoothctl gatt.select-attributes <spp - attributes>
bluetoothctl gatt.write "0xhh 0xhh ..."

Using interactive cli

bluetoothctl
[BlueTooth Printer   ]# menu gatt
[BlueTooth Printer   ]# select-attributes <spp - attributes>
[BlueTooth Printer   ]# write "0xhh 0xhh ..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment