Skip to content

Instantly share code, notes, and snippets.

@Akkiesoft Akkiesoft/
Last active Aug 29, 2015

What would you like to do?
# How to get the Bluetooth device address: hcitool scan
if $1 = pairing ; then
echo "1. Input PIN code at computer"
echo "2. Input PIN code at BT Keyboard"
echo "3. Done ;-)"
sudo bluez-simple-agent hci0 ${BTKEYBOARD}
sudo bluez-test-input connect ${BTKEYBOARD}
sudo bluez-test-device trusted ${BTKEYBOARD} yes
elif $1 = unpairing ; then
sudo bluez-test-device trusted ${BTKEYBOARD} no
sudo bluez-test-input disconnect ${BTKEYBOARD}
echo " [ pairing | unpairing ]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.