|
| re: Automating BT Connection... |
 |
Tue, 23 May 2006 14:50:11 -000 |
For my applications that use bluetooth it is typical that a user uses one
bluetooth connection for a few days and then it is possible that they will be
using another connection later. I have them select the bluetooth device once,
and then on each subsequent start of the program it attempts to reconnect to
that bluetooth device, if that device is not found I ask the user to select a
new device. I do this by storing the device address in the preferences for the
program and then calling connect instead of discover to create the connection.
If the connect fails or is pending and then fails I call discover in order to
create a new device.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|