Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mkol5222/c427ac3ca1f7560e9f98af5d49041447 to your computer and use it in GitHub Desktop.
Save mkol5222/c427ac3ca1f7560e9f98af5d49041447 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