com.esf.device.bluetooth.discovery.service
Class BluetoothDevice

java.lang.Object
  extended bycom.esf.device.bluetooth.discovery.service.BluetoothDevice

public class BluetoothDevice
extends java.lang.Object

This class is used to contain the information related to a single Bluetooth device. Each instance of this class will represent a device found during the most recent Bluetooth device discovery process.


Constructor Summary
BluetoothDevice()
           
 
Method Summary
 java.lang.String getBluetoothAddress()
          The Bluetooth device address; similar to the MAC address for an Ethernet device.
 java.lang.String getFriendlyName()
          Returns the Bluetooth friendly name of this device.
 java.util.ArrayList getServiceList()
          Returns a collection of BluetoothService objects, representing the Bluetooth services discovered for this device.
 java.lang.String toString()
          Typically used for application debugging, this method returns a string representation of the Bluetooth device.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BluetoothDevice

public BluetoothDevice()
Method Detail

getFriendlyName

public java.lang.String getFriendlyName()
Returns the Bluetooth friendly name of this device. Note that this may be a "null" name or an empty-string name.

Returns:
The device friendly name returned from the Bluetooth protocol stack.

getBluetoothAddress

public java.lang.String getBluetoothAddress()
The Bluetooth device address; similar to the MAC address for an Ethernet device. This name will be an ASCII-hex string, representing the Bluetooth address.

Returns:
Bluetooth device address, as a string.

getServiceList

public java.util.ArrayList getServiceList()
Returns a collection of BluetoothService objects, representing the Bluetooth services discovered for this device.
This may return an empty collection if there are no relevant services in this device.

Returns:
null, or an ArrayList of BluetoothService objects

toString

public java.lang.String toString()
Typically used for application debugging, this method returns a string representation of the Bluetooth device.

Returns:
String, description of the Bluetooth device


Copyright © 2009 Eurotech Inc. All rights reserved.