| Reply | « Previous Thread | Next Thread » |
|
Hi! I'm developing a Point-to-Point Bluetooth application for receiving data. I'd like to just accept connections from "trusted" devices and from certain services. Is there any way that I can check the device and service ID:s of incomming connections and just allow a specific device and service to establish a connection to my receiving device? In that case how do I set the device and service ID's of the connection I want to allow?
|
|
The examples demonstrate how to connect to an application based on service ID. The scenario you mentioned is a different case.
The filtering could be done by Bluetooth device address. The service discovery is done by searching device, which in this case is not feasible (unless you have your application also on the remote device). For authentication and authorisation in incoming connections, please refer to 'How to set service security requirements' in the SDK Help. Seppo Forum Nokia |
|
The authorisation means that after you have authorised a remote device, the next it connects to your device, the connection will be established automatically. With unauthorised devices, a pop up screen will ask the user to accept or decline the connection. If in this case after a certain timeout the remote device will give an error message.
To do authorisation, go to Bluetooth menu, go right with the joystick (to 'Paired devices' menu) and for a desired remote device, click Options -> set as authorised. How to do it programmatically, is another issue. Section 'How to listen for connections from remote devices' in the SDK Help gives generic guides on how to listen for remote connections and also links to setting security. It may be beneficial to have a look at Bluetooth Discovery example and other discovery mechanisms to have advise on how to access found devices database. However, I am not quite sure if those can be used in your case. Seppo Forum Nokia |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|