Raspberry Pi setup as bluetooth speaker

This commit is contained in:
Martin Bauer
2020-01-08 20:18:23 +01:00
commit d9cd53477f
19 changed files with 601 additions and 0 deletions

18
pis/bt-agent.service Normal file
View File

@@ -0,0 +1,18 @@
[Unit]
Description=bt-agent to accept bluetooth connections without pin
After=bluetooth.service
RestartSec=3
Restart=always
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
# make first adaptor discoverable
ExecStartPre=/bin/start_bt_discoverable {{bluetooth_mac_address}} {{bluetooth_name}}
ExecStart=bt-agent -c NoInputNoOutput
[Install]
WantedBy=bluetooth.target