com.nutiteq.bluetooth
Class BluetoothAPIDevice
java.lang.Object
com.nutiteq.bluetooth.BluetoothAPIDevice
- All Implemented Interfaces:
- BluetoothDevice, LocationDataConnectionProvider
public class BluetoothAPIDevice
- extends java.lang.Object
- implements BluetoothDevice, LocationDataConnectionProvider
Bluetooth devices implemented on top of Bluetooth API (JSR-82)
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLUETOOTH_TIMEOUT
public static final int BLUETOOTH_TIMEOUT
- See Also:
- Constant Field Values
btServicesFound
public java.util.Vector btServicesFound
BluetoothAPIDevice
public BluetoothAPIDevice(BluetoothHandler handler)
- Create new browser with caller, that could handle found devices.
- Parameters:
handler - handler for receiving found devices
findRemoteDevices
public void findRemoteDevices()
- Find all remote devices supporting serial port connection and report them
to
BluetoothHandler.
- Specified by:
findRemoteDevices in interface BluetoothDevice
deviceDiscovered
public void deviceDiscovered(RemoteDevice remoteDevice,
DeviceClass dClass)
inquiryCompleted
public void inquiryCompleted(int discType)
serviceSearchCompleted
public void serviceSearchCompleted(int transId,
int respCode)
servicesDiscovered
public void servicesDiscovered(int param,
ServiceRecord[] serviceRecord)
openConnection
public LocationDataConnection openConnection(java.lang.String url)
throws java.io.IOException
- Description copied from interface:
LocationDataConnectionProvider
- Open connection with given url
- Specified by:
openConnection in interface LocationDataConnectionProvider
- Parameters:
url - url for connection
- Returns:
- return opened connection
- Throws:
java.io.IOException - if something went wrong