Fix empty Bluetooth lists in web mixer; advertise it over Bonjour

busctl cannot convert some BlueZ advertisement data (Apple
ManufacturerData, a{qv}) to JSON, so GetManagedObjects failed as soon as
an iPad was paired and the web showed no devices at all. Read only the
needed Device1/Adapter1 properties per object instead. Also publish the
web mixer as an _http._tcp Avahi service.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jsahn
2026-10-12 21:54:38 +09:00
co-authored by Claude Opus 5.5
parent 5e8906b43d
commit 7fa372e801
5 changed files with 63 additions and 8 deletions
+7
View File
@@ -131,3 +131,10 @@ SBC medium 적용 후에는 500 ms 버퍼가 필요 없어 믹서(dmix), Bluetoo
`/sys/class/bluetooth/hci0`는 있어도 `bluetoothctl list`가 비는 경우를 확인했습니다.
`hciconfig -a`, `btmgmt info`, `dmesg`로 확인하고, Bluetooth 초기화 서비스로
풀리지 않으면 재부팅 후 다시 확인합니다. 페어링 기록을 먼저 삭제하지 마세요.
## 웹의 출력 목록·검색 결과가 비어 있음
`/api/state`의 `issues`에 `Failed to create new json object`가 보이면 BlueZ 기기
속성을 JSON으로 변환하지 못한 것입니다. Apple 기기의 광고 데이터(ManufacturerData)가
원인이었으며, 현재 버전은 필요한 속성만 읽어 이 문제를 피합니다. 오래된 웹 파일이
설치돼 있다면 `sudo bash scripts/install-web.sh`로 갱신하세요.