# Bluetooth Audio This repos supports incomming bt audio connections. It also sends the bt audio state via MQTT to smarthome.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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