Julf wrote: 
> If you can tell how to test for the BT pairing being up, the rest if
> totally trivial, but I don't have enough experience with the bt stack to
> know how to reliably test for the pairing being up.

There's a bt program called hcitool

hcitool con  - returns the active bt connections (example output: 
Connections:
< ACL 7D:75:75:xx:xx:xx handle 12 state 1 lm MASTER AUTH ENCRYPT SECURE
)

That's just an example - not my data.

Not sure if that could be used in some way.

The problem on a headless system is that LMS and squeezelite are loaded
on boot - so, I'm not sure how far it'd be practical to interact
dynamically when a bt connection became available.   Ideally, a
squeezelite which had a 'Choose audio output' option as a menu choice
would be best - but as Triode said earlier Squeezelite queries the
defined output on startup.

I think I'm wishing for the moon!

But thanks for the interest .... and if you have any ideas then let me
know!


------------------------------------------------------------------------
castalla's Profile: http://forums.slimdevices.com/member.php?userid=15624
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to