# Bluetooth Audio This repos supports incomming bt audio connections. It also sends the bt audio state via MQTT to smarthome.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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