dawed
Posts: 5
Joined: Sat Mar 26, 2016 6:32 pm

bluetootctl connect \nquit switch

Wed Mar 30, 2016 9:15 am

Good Morning,

I saw in some examples scripts to connect automatically a Bluetooth device
that they put inside the script a \nquit Switch like:

Code: Select all

echo "connect AA:BB:CC:DD:EE:FF \nquit" | bluetoothctl 
and i am wondering if exactly this Switch will be the solution that my Bluetoothdevice after some time (i guess on idle state from the device) does not disconnecting

Sadly i didn't found any documentation about this...

Thanks!

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: bluetootctl connect \nquit switch

Wed Mar 30, 2016 9:29 am

It's not a switch. It's a newline followed by the command "quit". It is the equivalent of typing the following at the bluetoothctl command prompt

Code: Select all

connect AA:BB:CC:DD:EE:FF
quit

dawed
Posts: 5
Joined: Sat Mar 26, 2016 6:32 pm

Re: bluetootctl connect \nquit switch

Wed Mar 30, 2016 9:40 am

ohh... ok thank you...

then i need to write a script and a service who connects again when connection is lost.. hmm

Return to “Advanced users”