I have been looking around a little bit and I'm not able to find exactly what I need.
What I want is for an Arduino 101 (or, if it would be easier, just an Arduino with some Bluetooth module) to always be on and looking for a Bluetooth connection to my phone. When it sees my phone and connects to it, it turns on an LED. When it disconnects, it turns the LED off.
Is this possible to do without needing to have an app open on my phone?
There's always an "app" that listens for the connection on your phone. You don't see it because the OS handles it. So unless you can re-write your OS code, you must have a separate app.
nick13579:
What I want is for an Arduino 101 (or, if it would be easier, just an Arduino with some Bluetooth module) to always be on and looking for a Bluetooth connection to my phone. When it sees my phone and connects to it, it turns on an LED. When it disconnects, it turns the LED off.
This is just a guess, but should work if you really do mean that the 101 is just an Arduino with a Bluetooth module.
The "an LED" is the state LED on bluetooth
configure Bluetooth state LED to be permanently on when connected. It may already do that.
configure state LED to be off when disconnected. I don't know if this is possible but it would be really useful if it is.
configure Bluetooth to automatically connect to phone.
Have phone open for scanning or connecting. It only needs to be in that state for as long as you are interested, which is probably a very short time. No app required.
That will give you what you want, just bring phone close to phone and Arduino will connect, take it away and it will disconnect. All is revealed by the state LED, including the disconnection, so yes Arduino knows the phone has gone away.
The above means the now-redundant Arduino can be re-employed for something more useful. All it is doing is provide power to Bluetooth.
If item 3 is not possible, I'm afraid you will have to programme Arduino to discriminate between steady and flashing State LEDs and deem the latter as "off".
I didn't mean make the app with the Arduino Ide, but was hoping someone might know if there was a way to connect an iPhone to an Arduino via Bluetooth with Xcode lol