|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBluetoothDiscovery
This interface is used to perform a search for Bluetooth devices implementing a specific Bluetooth service.
Note: this interface has changed since ESF version 1.1.0. All the methods have been deprecated, and a new discovery method has been added to the interface. This new discovery method performs much faster than the older methods.
Note: All deprecated methods are still implemented, but now return values indicating that a search will not be, or has not been, performed.
Method Summary | |
---|---|
void |
discoverDevices(int serviceUUID)
Deprecated. use getDeviceUrl() method |
java.lang.String |
getDeviceUrl(int serviceType,
java.lang.String deviceIdentifier)
Search for a remote bluetooth device, with a matching device identifier string and matching bluetooth service type. |
java.util.ArrayList |
getDiscoveredDevices()
Deprecated. use getDeviceUrl() method |
java.io.InputStream |
getInputStream(java.lang.String url)
Deprecated. use getDeviceUrl() method |
java.io.OutputStream |
getOutputStream(java.lang.String url)
Deprecated. use getDeviceUrl() method |
boolean |
isDiscoveryComplete()
Deprecated. use getDeviceUrl() method |
boolean |
setDevicePinCode(java.lang.String btUrl,
java.lang.String pinCode)
Certain Bluetooth devices require an authentication pin code. |
Method Detail |
---|
java.lang.String getDeviceUrl(int serviceType, java.lang.String deviceIdentifier)
The Bluetooth URL will be of a format similar to the following: btspp://010203040506:1;master=false
serviceType
- Bluetooth service type; from the class
BluetoothDiscoveryConstants.deviceIdentifier
- matching substring of either the device bluetooth address, or
the device bluetooth friendly name.
boolean setDevicePinCode(java.lang.String btUrl, java.lang.String pinCode)
btUrl
- Bluetooth URL of the device, as returned from the getDeviceUrl
method.pinCode
- The desired pin code.
java.util.ArrayList getDiscoveredDevices()
void discoverDevices(int serviceUUID) throws java.lang.Exception
java.lang.Exception
boolean isDiscoveryComplete()
java.io.InputStream getInputStream(java.lang.String url) throws java.lang.Exception
java.lang.Exception
java.io.OutputStream getOutputStream(java.lang.String url) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |