Alright guys I am having some issues. I have setup a bluetooth configuration (well setup is being generous, I ran a few lines of code as described here: http://www.instructables.com/id/Enhance-your-Raspberry-Pi-media-center-with-Blueto/). I am able to connect to my phone on each reboot by going to my iPhone setting and clicking connect to my known bluetooth connection points. I am also able to connect to my phone via bluetoothctl.
With bluetoothctl it connects but I havent found a way for it to automatically connect without having to manually type in connect AA:BB:CC:DD:EE:FF . Even if I could find a way I am guessing that I would be unable to run a shutdown script that is used for my car when ignition is turned off with a mausberrycircuit car switch. Info here: http://mausberrycircuits.com/pages/car-setup
Would there be a way for that script to take precedence even over an open bluetoothctl?
The second way I have found to connect and "works" is
$ sudo rfcomm connect 0 AA:BB:CC:DD:EE:FF 1
attached at the end of /etc/rc.local file and it works in the sense that in the bluetooth settings of my phone it says connected but when I play music is still plays on the phone. I have to manually click the connected button for it to start playing over the raspberry pi output.
What is going to be a way for me to automatically (needing no input other than me turning the key to my ignition) connect the pi to my iPhone 6.
Additional information: Running Raspbian Wheezy on BerryBoot.
Thank you for any input. I have learned a lot but I feel like there is a lot I am not understanding and still have to learn.