Please note: Because this question is concerned with integrating a BlueTooth chip to a PCB and a remote device, I do believe this is an electronics question at heart.
I have an experimental/hobby project where I want to use a momentary switch like this one to communicate to an app running on either my (Android) Samsung Galaxy as well as my iPhone 7+. Anytime the switch is pushed down, I want my app (regardless of whether its running on my iPhone or my Galaxy) to be notified and react accordingly.
Unless anyone has any better idea, I'm thinking about using BlueTooth for the communication link, because iPhone's have now deprecated the use of 3.5mm audio jacks, and so BlueTooth appears to be the only platform-agnostic way I can send signals from my momentary switch to my app.
So I'm looking for a BlueTooth transceiver that would fit the bill here:
- Will likely solder the switch and the BlueTooth transceiver to a PCB and power it externally (battery, not sure what the needs are there yet)
- When powered on, I need the BlueTooth chip to start attempting to connect to any other devices (such as my phone) that are listening for a similar connection
- Once a connection is made and the app (running on the phone) is listening, then when the switch is being pushed (closed), I want it to fire "a signal" to the BlueTooth transceiver/chip which would in turn then fire "a signal" on to the phone; the app would then respond accordingly
So my question: is there a BlueTooth chip (maybe such as these ones?) that can be integrated with a switch, and be used to scan for -- and connect to -- my phone in keeping with my needs above? Are there any "tricks" to configuring them or getting them to work with Android vs iOS devices?