# Bluetooth Audio This repos supports incomming bt audio connections. It also sends the bt audio state via MQTT to smarthome.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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