I want to check whether the BlueTooth device is the device I want by the HID(Human Interface Device) profile.
Is it possible??
And how to get the HID profile?
Thanks for your help
Based on your comments, I do understand your request like that: You want to write an iOS app that takes input from a device connected via Bluetooth using the HID profile. Input from other, similar devices shall not be accepted by the app.
A first answer is: You can't do that. Bluetooth HID connections are established at OS level by
Once, the input device is connected, it works as it is supposed to: Sending input events (in case of a keyboard characters / control signals). On app level you are not able to access low level data, like Bluetooth address, manufacturer information and so on. Gamekit will not help. It is higher level than OS level and requires an iOS device with an appropriate app on the remote side as well.
On a second thought, as you are developing the remote Bluetooth input device as well, you may go higher level. You connect the device as described above, but you encrypt the data the input device sends to a mobile device. Your app decrypts data and you problem is solved. Third party devices don't use your protocol and can't talk to your app. (So your app will have ignore their inputs). But this approach will break compatibility with other devices not using your app (e.g. you can't get a Bluetooth keyboard working with a regular pc anymore).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With