# Bluetooth Audio This repos supports incomming bt audio connections. It also sends the bt audio state via MQTT to smarthome.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bt-receiver 363B

1234567891011121314151617181920212223
  1. #!/bin/sh -e
  2. #
  3. if [[ $UID != 0 ]]; then
  4. echo "This script needs to be executes as root"
  5. exit 13
  6. fi
  7. BASEPATH=$(dirname `readlink -f "$0"`)
  8. # Make BT discoverable:
  9. sudo bluetoothctl <<EOF
  10. power on
  11. agent off
  12. agent NoInputNoOutput
  13. default-agent
  14. discoverable on
  15. pairable on
  16. EOF
  17. # Start bt-agent
  18. sudo bt-agent --capability=DisplayOnly -p $BASEPATH/bt-pins