I have an application that needs to have the following functionality:
1. User tells system to connect to new bluetooth device
2. Application will turn on discovery and wait for a request for authentication
3. When request arrives appilcation will do the authenticate and setup a COM port with the pairing
4. Return application back to user for connitued use
The application is locked down to the point of not allowing the user to access anything else. So I need this to work with as little user input as possible.
I have most of the idea down of how todo this but there are still gaps in my understanding. I am new to API and core system developement, so I need a little help with this.
Mostly I just need some help pointing me in the right direction.
I do know to use BluetoothRegisterForAuthentication to capture the authentication message. But it requires a known device to be passed as a parameter, how do I capture that device when it becomes available?
The device I am connecting too is nondiscoverable, I have to make my computer discoverable and it will initiate the authentication.
I hope this is clear enough.